Good point, I just have created a JIRA ticket for this:
https://issues.apache.org/jira/browse/MATH-305-----Original Message-----
From: Phil Steitz [mailto:
[hidden email]]
Sent: 21 October 2009 12:44
To: Commons Users List
Subject: [math] Re: math KMeansPlusPlusClusterer Failing unittest
VanIngen, Erik (FIES) wrote:
> 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?
This looks like a bug. I get an NPE running the test, which should succeed.
If you don't mind opening a JIRA ticket for this, that would be appreciated.
Thanks for reporting this.
Phil
>
> Kind Regards,
> Erik
>
>
>
>
> @Test
> public void testPerformClusterAnalysis2() {
> KMeansPlusPlusClusterer<EuclideanIntegerPoint> transformer =
> new KMeansPlusPlusClusterer<EuclideanIntegerPoint>(new
> Random(1746432956321l));
> EuclideanIntegerPoint[] points = new EuclideanIntegerPoint[] {
> new EuclideanIntegerPoint(new int[] { 1959,325100 }),
> new EuclideanIntegerPoint(new int[] { 1960,373200 }),
> };
> List<Cluster<EuclideanIntegerPoint>> clusters =
> transformer.cluster(Arrays.asList(points), 1, 1);
> assertEquals(1, clusters.size());
>
> }
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]