[
https://issues.apache.org/jira/browse/STATISTICS-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anirudh Joshi updated STATISTICS-79:
------------------------------------
Description: 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.
(was: 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 is used, starting with the
recursive updating algorithm mentioned above, which protects the mean from
overflow, and then correcting this by adding the mean deviation of the data
values from the arithmetic mean.)
> 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
>
> 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)