|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectStatistic
WeightedStatistic
public class WeightedStatistic
Abstract data type to collect values and provide certain statistical properties of the collection.
| Field Summary |
|---|
| Fields inherited from class Statistic |
|---|
currentValue, highestValue, lowestValue, numSamples, statisticName, sumOfValues, sumsqOfValues |
| Constructor Summary | |
|---|---|
WeightedStatistic(java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
collect(double value,
int weight)
Adds a value to the statistic collection |
| Methods inherited from class Statistic |
|---|
collect, count, current, highest, lowest, mean, name, standardDeviation, sum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedStatistic(java.lang.String name)
name - String with descriptive name for this object| Method Detail |
|---|
public void collect(double value,
int weight)
value - the value to be sampledweight - the weight this value caries
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||