Java org.apache.commons.math3.stat.descriptive.moment Mean fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.stat.descriptive.moment Mean fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.stat.descriptive.moment Mean.

The text is from its open source code.

Constructor

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

Method

voidclear()
doubleevaluate(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.
doubleevaluate(final double[] values, final double[] weights)
Returns the weighted arithmetic mean of the entries in the input array.
doubleevaluate(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.
longgetN()
doublegetResult()
voidincrement(final double d)

Note that when #Mean(FirstMoment) is used to create a Mean, this method does nothing.