[
https://issues.apache.org/jira/browse/STATISTICS-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772568#comment-17772568
]
Alex Herbert commented on STATISTICS-71:
----------------------------------------
{quote}Can this work lead to some cleanup in Commons Math?
{quote}
I would hope so. However the statistics descriptive module in CM is quite
interlaced. One of the issues for CM around the moments was that the
SecondMoment class was public but the other moments were package private. This
seems to have been done to support the SummaryStatistics and
OLSMultipleLinearRegression in other packages. These use it to compute the mean
and variance.
With the new Statistics module the underlying implementations of the moments
are hidden. So to compute a mean and variance together currently involved
duplicating the computation. This will be solved when we create the summary
aggregator of statistics. This aggregator should be smart enough to minimise
any repeat work in the computation.
> Implementation of Univariate Statistics
> ---------------------------------------
>
> Key: STATISTICS-71
> URL: https://issues.apache.org/jira/browse/STATISTICS-71
> Project: Commons Statistics
> Issue Type: Task
> Components: descriptive
> Reporter: Anirudh Joshi
> Assignee: Anirudh Joshi
> Priority: Minor
> Labels: gsoc, gsoc2023
>
> Jira ticket to track the implementation of the Univariate statistics required
> for the updated SummaryStatistics API.
> The implementation would be "storeless". It should be used for calculating
> statistics that can be computed in one pass through the data without storing
> the sample values.
> Currently I have the definition of API as (this might evolve as I continue
> working)
> {code:java}
> public interface DoubleStorelessUnivariateStatistic extends DoubleSupplier {
> DoubleStorelessUnivariateStatistic add(double v);
> long getCount();
> void combine(DoubleStorelessUnivariateStatistic other);
> } {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)