public class Statistic extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(long value) |
StringBuilder |
exportCSV(StringBuilder result) |
StringBuilder |
exportJSON(StringBuilder result) |
StringBuilder |
exportText(StringBuilder result) |
String |
formatValue(long value)
You can change implementation of this method in children class
(ex: convert to second for time, or 'Mo' for memory)
|
long |
getCall() |
long |
getMax() |
double |
getMean() |
long |
getMin() |
String |
getName() |
double |
getSlopeOfLinearRegression()
Compute splope of Linear regression (only the a in y=ax+b)
|
double |
getStandardDeviation()
Compute Standard deviation (ecart type)
|
long |
getTotal() |
public Statistic(String name)
public String getName()
public void add(long value)
public long getCall()
public long getTotal()
public long getMax()
public long getMin()
public double getMean()
public double getStandardDeviation()
public double getSlopeOfLinearRegression()
public String formatValue(long value)
value - public StringBuilder exportCSV(StringBuilder result)
public StringBuilder exportJSON(StringBuilder result)
public StringBuilder exportText(StringBuilder result)
Copyright © 2004–2014 CodeLutin. All rights reserved.