Examples of EuclideanDistance


Examples of stallone.doubles.EuclideanDistance

    {
        this.eps = _epsilon;
        this.minpts = _minpoints;
        this.nclusters = _nclusters;

        neighborSearch = new NeighborSearchTrivial(null,new EuclideanDistance());
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        data.add(Doubles.create.arrayFrom(1.3));
        data.add(Doubles.create.arrayFrom(1.4));

        DensityBasedClusteringOPTICS clustering = new DensityBasedClusteringOPTICS(0.5, 2, 2);
        clustering.setInput(data);
        clustering.setMetric(new EuclideanDistance());
        clustering.perform();
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        int nclusters = str.toInt(args[1]);
        int nrepeats = str.toInt(args[2]);

        CompactRandomClustering C = new CompactRandomClustering(nclusters, nrepeats);
        C.setInput(data);
        C.setMetric(new EuclideanDistance());
        C.perform();

        IIntArray assign = C.getClusterIndexes();
        ints.print(assign,"","\n");
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        return (vd);
    }

    public IDiscretization voronoiDiscretization(IDataSequence centers)
    {
        VoronoiDiscretization vd = new VoronoiDiscretization(centers, new EuclideanDistance());
        return (vd);
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

    }

    public IDiscretization coreDiscretization(IDataSequence _centers, double _radius)
    {
        CoreDiscretization disc = new CoreDiscretization(_centers,
            _radius, new EuclideanDistance());
        return (disc);
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        return (vd);
    }

    public IDiscretization regularSelectionDiscretization(IDataSequence data, int k)
    {
        return (regularSelectionDiscretization(data, new EuclideanDistance(), k));
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        return (vd);
    }

    public IDiscretization randomSelectionDiscretization(IDataSequence data, int k)
    {
        return (randomSelectionDiscretization(data, new EuclideanDistance(), k));
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

        {
            return new MinimalRMSDistance3D(nRows);
        }
        if (metricID == METRIC_EUCLIDEAN)
        {
            return new EuclideanDistance();
        }
        else
        {
            throw new RuntimeException("No metric.");
        }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

    }

    public IClustering kmeans(int k, int maxIter)
    {
        KMeansClustering clustering = new KMeansClustering();
        kmeans(clustering, new EuclideanDistance(), k, maxIter);
        return (clustering);
    }
View Full Code Here

Examples of stallone.doubles.EuclideanDistance

    }

    public IClustering kmeans(int k)
    {
        KMeansClustering clustering = new KMeansClustering();
        kmeans(clustering, new EuclideanDistance(), k, 1000);
        return (clustering);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.