Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 337B211DA2 for ; Fri, 27 Jun 2014 13:24:25 +0000 (UTC) Received: (qmail 58413 invoked by uid 500); 27 Jun 2014 13:24:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58319 invoked by uid 500); 27 Jun 2014 13:24:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 58308 invoked by uid 99); 27 Jun 2014 13:24:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2014 13:24:24 +0000 Date: Fri, 27 Jun 2014 13:24:24 +0000 (UTC) From: "Sergei Lebedev (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-1133) NaNStrategy for UnivariateStatistic and friends MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sergei Lebedev created MATH-1133: ------------------------------------ Summary: 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.2#6252)