You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2016/05/14 17:51:12 UTC
[jira] [Updated] (MATH-1228) First Moment is not public
[ https://issues.apache.org/jira/browse/MATH-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles updated MATH-1228:
-------------------------
Fix Version/s: 4.0
> 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
> Fix For: 4.0
>
>
> 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
(v6.3.4#6332)