|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.Accumulator
public class Accumulator
The Accumulator represents a collection of Calculable objects and performs statistical analysis across the collection of Calculable objects, providing mean, median and standard deviation
| Constructor Summary | |
|---|---|
Accumulator(WatchDataSource source)
Creates new Accumulator |
|
| Method Summary | |
|---|---|
int |
count()
Get the count of the current set of values |
Calculable[] |
getCalcs()
|
WatchDataSource |
getSource()
Getter for property source. |
void |
init()
Initialize the range of values for calculating statistics |
double |
max()
Get the max value of the current set of values |
double |
mean()
Get the mean of the current set of values |
double |
median()
Get the median of the current set of values |
double |
min()
Get the min of the current set of values |
double |
mode()
Get the mode of the current set of values |
int |
modeCount()
Get the number of occurrences of the mode in the current set of values |
double |
range()
Get the range of the current set of values |
void |
reset()
Clears the current set of values |
void |
setSource(WatchDataSource source)
Setter for property source. |
double |
standardDeviation()
Get the standard deviation of the current set of values |
double |
sum()
Get the sum of the current set of values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Accumulator(WatchDataSource source)
source - The WatchDataSource the Accumulator will use| Method Detail |
|---|
public Calculable[] getCalcs()
public void reset()
public void init()
throws RemoteException
RemoteException - If communication errors happen interfacing with
the WatchDataSourcepublic int count()
public double max()
public double mean()
public double median()
public double min()
public double mode()
public int modeCount()
public double range()
public double standardDeviation()
public double sum()
public WatchDataSource getSource()
public void setSource(WatchDataSource source)
source - New value of property source.
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||