[ 
https://issues.apache.org/jira/browse/MATH-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275313#comment-15275313
 ] 

Gilles Sadowski edited comment on MATH-1228 at 6/4/23 11:40 PM:
----------------------------------------------------------------

I've started a case against the whole {{(First|Second|Third|Fourth)Moment}} 
hierarchy on the ["dev" ML|https://markmail.org/message/jc75ynqhen3q4rnp].


was (Author: erans):
I've started a case against the whole {{(First|Second|Third|Fourth)Moment}} 
hierarchy on the "dev" ML.


> First Moment is not public
> --------------------------
>
>                 Key: MATH-1228
>                 URL: https://issues.apache.org/jira/browse/MATH-1228
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Fabian Lange
>            Priority: Major
>             Fix For: 4.X
>
>
> Hi there,
> is there a specific reason FirstMoment is not public?
> I want to calculate a mean over a List<Double>, for that I want to loop over 
> that list and invoke Mean.increment(listValue), however this is slower than 
> it could be. Every increment call makes a check to incMoment.
> I could avoid that if I use a FirstMoment directly, but I cannot create an 
> instance, because it is protected.
> Also this effectively means that the public constructor Mean(FirstMoment) is 
> not usable.



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

Reply via email to