Package stallone.discretization

Examples of stallone.discretization.VoronoiDiscretization


    public NeighborSearchTrivial(IDataSequence clusterCenters, IMetric<IDoubleArray> metric)
    {
        this.data = clusterCenters;
        this.metric = metric;

        this.voronoi = new VoronoiDiscretization(clusterCenters, metric);
    }
View Full Code Here


                System.out.println(d[minIndex] + "\t" + centroids.size());
            }
        }

        this.clusterCenters = centroids;
        this.voronoiPartitioning = new VoronoiDiscretization(this.clusterCenters, this.metric);
        this.resultsAvailable = true;
    }
View Full Code Here


    public IDiscretization voronoiDiscretization(IDataSequence centers,
        IMetric<IDoubleArray> metric)
    {
        VoronoiDiscretization vd = new VoronoiDiscretization(centers, metric);
        return (vd);
    }
View Full Code Here

        return (vd);
    }

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

        IIntArray indexes = Ints.create.arrayRange(0, data.size(), data.size() / k);
        for (int i = 0; i < indexes.size(); i++)
        {
            clusterCenters.set(i, data.get(indexes.get(i)));
        }
        VoronoiDiscretization vd = new VoronoiDiscretization(clusterCenters, metric);
        return (vd);
    }
View Full Code Here

        for (int i = 0; i < indexes.size(); i++)
        {
            clusterCenters.add(data.get(indexes.get(i)));
        }

        VoronoiDiscretization vd = new VoronoiDiscretization(clusterCenters, metric);
        return (vd);
    }
View Full Code Here

TOP

Related Classes of stallone.discretization.VoronoiDiscretization

Copyright © 2018 www.massapicom. 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.