Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D071A2009F7 for ; Sat, 7 May 2016 19:17:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B68AC160A01; Sat, 7 May 2016 17:17:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 314091609F6 for ; Sat, 7 May 2016 19:17:14 +0200 (CEST) Received: (qmail 1642 invoked by uid 500); 7 May 2016 17:17:13 -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 1630 invoked by uid 99); 7 May 2016 17:17:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 May 2016 17:17:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F1A552C1F5C for ; Sat, 7 May 2016 17:17:12 +0000 (UTC) Date: Sat, 7 May 2016 17:17:12 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1228) First Moment is not public MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 07 May 2016 17:17:15 -0000 [ https://issues.apache.org/jira/browse/MATH-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275313#comment-15275313 ] Gilles commented on MATH-1228: ------------------------------ 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 > > Hi there, > is there a specific reason FirstMoment is not public? > I want to calculate a mean over a List, 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)