commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: math KMeansPlusPlusClusterer Failing unittest
Date Tue, 20 Oct 2009 16:50:21 GMT
Can you say more about exactly what problem you are having?

On Tue, Oct 20, 2009 at 2:54 AM, VanIngen, Erik (FIES) <
Erik.VanIngen@fao.org> 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?
>
> 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());
>
>    }
>
>


-- 
Ted Dunning, CTO
DeepDyve

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message