|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.eval.Mean
public class Mean
Calculates the arithmetic mean of values
added with the add(double) method.
| Constructor Summary | |
|---|---|
Mean()
|
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a value to the arithmetic mean. |
void |
add(double value,
long count)
Adds a value count times to the arithmetic mean. |
long |
count()
Retrieves the number of times a value was added to the mean. |
double |
mean()
Retrieves the mean of all values added with add(double) or 0 if there are zero added
values. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Mean()
| Method Detail |
|---|
public void add(double value)
value - the value which should be added
to the arithmetic mean.
public void add(double value,
long count)
value - the value which should be added
to the arithmetic mean.count - number of times the value should be added to
arithmetic mean.public double mean()
add(double) or 0 if there are zero added
values.
public long count()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||