Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 72832 invoked from network); 20 Oct 2009 09:55:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 09:55:05 -0000 Received: (qmail 2236 invoked by uid 500); 20 Oct 2009 09:55:04 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 2130 invoked by uid 500); 20 Oct 2009 09:55:04 -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 2112 invoked by uid 99); 20 Oct 2009 09:55:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 09:55:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Erik.VanIngen@fao.org designates 168.202.2.12 as permitted sender) Received: from [168.202.2.12] (HELO pmdfint.fao.org) (168.202.2.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 09:54:52 +0000 Received: from hqfaoex04.hq.un.fao.org (hqfaoex04.fao.org [168.202.2.112]) by pmdfint.fao.org (PMDF V6.2-X17 #30673) with ESMTP id <0KRT0076I4UQK6@pmdfint.fao.org> for user@commons.apache.org; Tue, 20 Oct 2009 11:54:31 +0200 (MEST) Received: from hqfaoex03.hq.un.fao.org ([168.202.2.195]) by hqfaoex04.hq.un.fao.org with Microsoft SMTPSVC(5.0.2195.6713); Tue, 20 Oct 2009 11:54:31 +0200 Received: from hqfaoex05.hq.un.fao.org ([168.202.2.150]) by hqfaoex03.hq.un.fao.org with Microsoft SMTPSVC(5.0.2195.6713); Tue, 20 Oct 2009 11:54:31 +0200 Received: from hqffex01.hq.un.fao.org ([168.202.2.199]) by hqfaoex05.hq.un.fao.org with Microsoft SMTPSVC(5.0.2195.6713); Tue, 20 Oct 2009 11:54:31 +0200 Date: Tue, 20 Oct 2009 11:54:30 +0200 From: "VanIngen, Erik (FIES)" Subject: math KMeansPlusPlusClusterer Failing unittest To: user@commons.apache.org Message-id: <44ACF4AB1BF0834DB42A3FD90DE8A19C09ACF1B0@hqffex01.fao.org> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6619.12 Content-type: multipart/alternative; boundary="----_=_NextPart_001_01CA516B.51C354B1" Thread-Topic: math KMeansPlusPlusClusterer Failing unittest Thread-Index: AcpRa1HB6gCGLcjnR0WYKouyiivLHg== Content-Class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 20 Oct 2009 09:54:31.0010 (UTC) FILETIME=[51DA6C20:01CA516B] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CA516B.51C354B1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I have a problem with KMeansPlusPlusClusterer in the trunk. See below = for the unittest. Am I doing something wrong here or is there a bug? Kind Regards, Erik=20 @Test public void testPerformClusterAnalysis2() { KMeansPlusPlusClusterer transformer =3D new KMeansPlusPlusClusterer(new Random(1746432956321l)); EuclideanIntegerPoint[] points =3D new EuclideanIntegerPoint[] { new EuclideanIntegerPoint(new int[] { 1959,325100 }), new EuclideanIntegerPoint(new int[] { 1960,373200 }), }; List> clusters =3D transformer.cluster(Arrays.asList(points), 1, 1); assertEquals(1, clusters.size()); } ------_=_NextPart_001_01CA516B.51C354B1--