From user-return-26698-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Sep 14 17:39:37 2011 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D5C97F40 for ; Wed, 14 Sep 2011 17:39:37 +0000 (UTC) Received: (qmail 98794 invoked by uid 500); 14 Sep 2011 17:39:33 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 98667 invoked by uid 500); 14 Sep 2011 17:39:32 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 98574 invoked by uid 99); 14 Sep 2011 17:39:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 17:39:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.188.112.57] (HELO smtps.newmex.com) (209.188.112.57) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 17:39:23 +0000 Received: from 15-MacBook-Pro.local (unknown [204.134.43.182]) (Authenticated sender: mickeydog) by smtps.newmex.com (Postfix) with ESMTP id 07F7CBD01C5 for ; Wed, 14 Sep 2011 11:39:03 -0600 (MDT) Message-ID: <4E70E6B0.9000306@taosnet.com> Date: Wed, 14 Sep 2011 11:38:56 -0600 From: Mck User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Commons Users List Subject: Re: [math] ANOVA - oneWayAnovaPValue() References: <6A7832DE-B287-499B-A648-747089E9673A@gmail.com> <4E70E44D.9080307@taosnet.com> In-Reply-To: <4E70E44D.9080307@taosnet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Perhaps I am looking at the wrong functionality for what I need. I have a array of doubles, in which I am looking for outliers, given a significance of, say, 0.95. On 9/14/11 11:28 AM, Mck wrote: > Looking at the documentation for ANOVA, I see this sample code: > > double[] classA = {93.0, 103.0, 95.0, 101.0, 91.0, 105.0, 96.0, 94.0, > 101.0 }; > double[] classB = {99.0, 92.0, 102.0, 100.0, 102.0, 89.0 }; > double[] classC = {110.0, 115.0, 111.0, 117.0, 128.0, 117.0 }; > List classes = new ArrayList(); > classes.add(classA); > classes.add(classB); > classes.add(classC); > > and then > > TestUtils.oneWayAnovaPValue(classes); > > Works fine. However, if I add only classA, I get a > IllegalArgumentException: ANOVA: two or more categories required > > I do not understand why this was implemented this way. In my own code, > I have one array of double. It appears that I will have to > artificially split it into 2 parts to work with this. I could be > wrong, of course. Can someone please explain? > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org