Examples of VoronoiDiscretization


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

Examples of stallone.discretization.VoronoiDiscretization

                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

Examples of stallone.discretization.VoronoiDiscretization


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

Examples of stallone.discretization.VoronoiDiscretization

        return (vd);
    }

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

Examples of stallone.discretization.VoronoiDiscretization

        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

Examples of stallone.discretization.VoronoiDiscretization

        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
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.