public class ScalarStatistics extends Object implements MonitoredItem, Serializable
Constructor and Description |
---|
ScalarStatistics() |
Modifier and Type | Method and Description |
---|---|
ScalarStatistics |
add(double... values)
Add.
|
void |
add(double v)
Add.
|
ScalarStatistics |
add(ScalarStatistics right)
Add scalar statistics.
|
void |
clear()
Clear.
|
int |
getCount()
Gets count.
|
com.google.gson.JsonObject |
getJson()
Gets json.
|
double |
getMean()
Gets mean.
|
double |
getMeanPower()
Gets mean power.
|
Map<CharSequence,Object> |
getMetrics()
Gets metrics.
|
double |
getStdDev()
Gets std dev.
|
void |
readJson(com.google.gson.JsonObject json)
Read json.
|
static ScalarStatistics |
stats(double[] data)
Stats scalar statistics.
|
ScalarStatistics |
subtract(ScalarStatistics right)
Subtract scalar statistics.
|
String |
toString() |
@Nonnull public static ScalarStatistics stats(@Nonnull double[] data)
data
- the data@Nullable public ScalarStatistics add(@Nonnull double... values)
values
- the valuespublic final void add(double v)
v
- the v@Nonnull public final ScalarStatistics add(@Nonnull ScalarStatistics right)
right
- the rightpublic void clear()
public int getCount()
@Nonnull public com.google.gson.JsonObject getJson()
public double getMean()
public double getMeanPower()
public Map<CharSequence,Object> getMetrics()
MonitoredItem
getMetrics
in interface MonitoredItem
public double getStdDev()
public void readJson(@Nullable com.google.gson.JsonObject json)
json
- the json@Nonnull public final ScalarStatistics subtract(@Nonnull ScalarStatistics right)
right
- the rightCopyright © 2019 SimiaCryptus Software. All rights reserved.