|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object Accumulator
public class 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 |
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 |
getVariance()
Calculates the variance of accumulated items |
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 getMean()
public double getStandardDeviation()
public double getVariance()
public double getMin()
public double getMax()
public double getLast()
public int getCount()
public double getSum()
public static int getByteSize()
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |