Example usage for Java org.apache.commons.math3.stat.descriptive.moment Mean fields, constructors, methods, implement or subclass
The text is from its open source code.
Mean() Constructs a Mean. | |
Mean(final FirstMoment m1) Constructs a Mean with an External Moment. | |
Mean(Mean original) Copy constructor, creates a new Mean identical to the original |
void | clear() |
double | evaluate(final double[] values) This default implementation calls #clear , then invokes #increment in a loop over the the input array, and then uses #getResult to compute the return value. |
double | evaluate(final double[] values, final double[] weights) Returns the weighted arithmetic mean of the entries in the input array. |
double | evaluate(final double[] values, final int begin, final int length) Returns the arithmetic mean of the entries in the specified portion of the input array, or Double.NaN if the designated subarray is empty. |
long | getN() |
double | getResult() |
void | increment(final double d) Note that when #Mean(FirstMoment) is used to create a Mean, this method does nothing. |