|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectgridsim.Accumulator
GridSim Accumulator provides a placeholder for maintaining statistical values of a series of data added to it. It can be queried for mean, min, max, sum, square mean, standard deviation, and the largest and smallest values in the data series.
Constructor Summary | |
Accumulator()
Allocates a new Accumulator object |
Method Summary | |
void |
add(double item)
An overloaded method |
void |
add(double item,
int times)
A method that adds an item to the Accumulator |
static int |
ByteSize()
Deprecated. As of GridSim 2.1, replaced by getByteSize() |
int |
count()
Deprecated. As of GridSim 2.1, replaced by getCount() |
static int |
getByteSize()
A method that determines the size of Accumulator object |
int |
getCount()
A method that counts the number of items accumulated so far |
double |
getLast()
A method that finds the last accumulated item |
double |
getMax()
A method that finds the largest number of accumulated items |
double |
getMean()
A method that calculates the mean of accumulated items |
double |
getMin()
A method that finds the smallest number of accumulated items |
double |
getStandardDeviation()
A method that calculates the standard deviation of accumulated items |
double |
getSum()
A method that calculates the sum of accumulated items |
double |
last()
Deprecated. As of GridSim 2.1, replaced by getLast() |
double |
max()
Deprecated. As of GridSim 2.1, replaced by getMax() |
double |
mean()
Deprecated. As of GridSim 2.1, replaced by getMean() |
double |
min()
Deprecated. As of GridSim 2.1, replaced by getMin() |
double |
sd()
Deprecated. As of GridSim 2.1, replaced by getStandardDeviation() |
double |
sum()
Deprecated. As of GridSim 2.1, replaced by getSum() |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Accumulator()
Method Detail |
public void add(double item, int times)
item
- an item to be added to the Accumulatortimes
- number of time the item value is repeatedpublic void add(double item)
item
- an item to be added to the accumulatorpublic double mean()
getMean()
public double getMean()
public double sd()
getStandardDeviation()
public double getStandardDeviation()
public double min()
getMin()
public double getMin()
public double max()
getMax()
public double getMax()
public double last()
getLast()
public double getLast()
public int count()
getCount()
public int getCount()
public double sum()
getSum()
public double getSum()
public static int ByteSize()
getByteSize()
public static int getByteSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |