@Deprecated public class CanopyClusterer extends Object
| Constructor and Description |
|---|
CanopyClusterer(DistanceMeasure measure,
double t1,
double t2)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPointToCanopies(Vector point,
Collection<Canopy> canopies)
Deprecated.
This is the same algorithm as the reference but inverted to iterate over
existing canopies instead of the points.
|
boolean |
canopyCovers(Canopy canopy,
Vector point)
Deprecated.
Return if the point is covered by the canopy
|
static List<Canopy> |
createCanopies(List<Vector> points,
DistanceMeasure measure,
double t1,
double t2)
Deprecated.
Iterate through the points, adding new canopies.
|
static List<Vector> |
getCenters(Iterable<Canopy> canopies)
Deprecated.
Iterate through the canopies, adding their centroids to a list
|
double |
getT1()
Deprecated.
|
double |
getT2()
Deprecated.
|
double |
getT3()
Deprecated.
|
double |
getT4()
Deprecated.
|
void |
setT3(double t3)
Deprecated.
|
void |
setT4(double t4)
Deprecated.
|
static void |
updateCentroids(Iterable<Canopy> canopies)
Deprecated.
Iterate through the canopies, resetting their center to their centroids
|
void |
useT3T4()
Deprecated.
Used by CanopyReducer to set t1=t3 and t2=t4 configuration values
|
public CanopyClusterer(DistanceMeasure measure, double t1, double t2)
public double getT1()
public double getT2()
public double getT3()
public double getT4()
public void useT3T4()
public void addPointToCanopies(Vector point, Collection<Canopy> canopies)
point - the point to be addedcanopies - the Listpublic boolean canopyCovers(Canopy canopy, Vector point)
point - a pointpublic static List<Canopy> createCanopies(List<Vector> points, DistanceMeasure measure, double t1, double t2)
points - a listmeasure - a DistanceMeasure to uset1 - the T1 distance thresholdt2 - the T2 distance thresholdpublic static List<Vector> getCenters(Iterable<Canopy> canopies)
canopies - a Listpublic static void updateCentroids(Iterable<Canopy> canopies)
canopies - a Listpublic void setT3(double t3)
public void setT4(double t4)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.