[ 
https://issues.apache.org/jira/browse/STATISTICS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert resolved STATISTICS-79.
------------------------------------
    Fix Version/s: 1.1
       Resolution: Implemented

Added in commit:

576184784a43fb140898977412bb748dc2aa6612

> Implement Mean
> --------------
>
>                 Key: STATISTICS-79
>                 URL: https://issues.apache.org/jira/browse/STATISTICS-79
>             Project: Commons Statistics
>          Issue Type: Sub-task
>          Components: descriptive
>            Reporter: Anirudh Joshi
>            Priority: Minor
>             Fix For: 1.1
>
>
> Computes the rolling mean according to the [FirstMoment.increment(double 
> d)|https://github.com/apache/commons-math/blob/master/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/FirstMoment.java#L92]
>  method in {{commons-math}} library. If the input array is known beforehand, 
> such as in the {{Mean.of(double... values)}} method, a more accurate mean is 
> computed using a two-pass, corrected algorithm, starting with computing the 
> rolling mean, which protects the mean from overflow, and then correcting this 
> by adding the mean deviation of the data values from the arithmetic mean.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to