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/30 00:08:13 UTC

[jira] [Resolved] (MATH-1133) NaNStrategy for UnivariateStatistic and friends

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

Gilles resolved MATH-1133.
--------------------------
    Resolution: Incomplete

No conclusion from the ML reported here.

> NaNStrategy for UnivariateStatistic and friends
> -----------------------------------------------
>
>                 Key: MATH-1133
>                 URL: https://issues.apache.org/jira/browse/MATH-1133
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Sergei Lebedev
>            Priority: Minor
>
> In the current implementation univariate statistics don't allow to specify NaN behaviour. For instance, the following code simply yields NaN as the result.
> {code:java}
> Mean mean = new Mean();
> mean.increment(42);
> mean.increment(Double.NaN);
> System.out.println(mean.getResult());  // prints 'NaN'.
> {code}
> Is it possible to parametrize all available statistics by NaNStrategy with the default behaviour being a no-op?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)