Package opennlp.tools.util.eval
Class Mean
java.lang.Object
opennlp.tools.util.eval.Mean
Calculates the arithmetic mean of values
 added with the 
add(double) method.- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Meanpublic Mean()
 
- 
- 
Method Details- 
addpublic void add(double value) Adds a value to the arithmetic mean.- Parameters:
- value- the value which should be added to the arithmetic mean.
 
- 
addpublic void add(double value, long count) Adds a valuecounttimes to the arithmetic mean.- Parameters:
- value- the value which should be added to the arithmetic mean.
- count- number of times the value should be added to arithmetic mean.
 
- 
meanpublic double mean()- Returns:
- Retrieves the mean of all values added with add(double)or0if there are zero add values.
 
- 
countpublic long count()- Returns:
- Retrieves the number of times a value was added to the mean.
 
- 
toString
 
-