|
GridSim v3.1 |
|||||||||
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)
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()
Determines the size of Accumulator object |
int |
getCount()
Counts the number of items accumulated so far |
double |
getLast()
Finds the last accumulated item |
double |
getMax()
Finds the largest number of accumulated items |
double |
getMean()
Calculates the mean of accumulated items |
double |
getMin()
Finds the smallest number of accumulated items |
double |
getStandardDeviation()
Calculates the standard deviation of accumulated items |
double |
getSum()
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()
|
GridSim v3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |