|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.meanshift.MeanShiftCanopyClusterer
public class MeanShiftCanopyClusterer
Constructor Summary | |
---|---|
MeanShiftCanopyClusterer(DistanceMeasure aMeasure,
double aT1,
double aT2,
double aDelta)
|
|
MeanShiftCanopyClusterer(org.apache.hadoop.mapred.JobConf job)
|
Method Summary | |
---|---|
boolean |
closelyBound(MeanShiftCanopy canopy,
Vector point)
Return if the point is closely covered by the canopy |
static java.util.List<MeanShiftCanopy> |
clusterPoints(java.util.List<Vector> points,
DistanceMeasure measure,
double convergenceThreshold,
double t1,
double t2,
int numIter)
This is the reference mean-shift implementation. |
void |
config(DistanceMeasure aMeasure,
double aT1,
double aT2,
double aDelta)
Configure the Canopy for unit tests |
void |
configure(org.apache.hadoop.mapred.JobConf job)
Configure the Canopy and its distance measure |
double |
getT1()
|
double |
getT2()
|
void |
mergeCanopy(MeanShiftCanopy aCanopy,
java.util.List<MeanShiftCanopy> canopies)
Merge the given canopy into the canopies list. |
static boolean |
runMeanShiftCanopyIteration(java.util.List<MeanShiftCanopy> canopies,
MeanShiftCanopyClusterer clusterer)
Perform a single iteration over the points and clusters, assigning points to clusters and returning if the iterations are completed. |
boolean |
shiftToMean(MeanShiftCanopy canopy)
Shift the center to the new centroid of the cluster |
void |
testReferenceImplementation()
Story: User can exercise the reference implementation to verify that the test datapoints are clustered in a reasonable manner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeanShiftCanopyClusterer(org.apache.hadoop.mapred.JobConf job)
public MeanShiftCanopyClusterer(DistanceMeasure aMeasure, double aT1, double aT2, double aDelta)
Method Detail |
---|
public double getT1()
public double getT2()
public void configure(org.apache.hadoop.mapred.JobConf job)
job
- the JobConf for this jobpublic void config(DistanceMeasure aMeasure, double aT1, double aT2, double aDelta)
aDelta
- the convergence criteriapublic void mergeCanopy(MeanShiftCanopy aCanopy, java.util.List<MeanShiftCanopy> canopies)
aCanopy
- a MeanShiftCanopy to be mergedcanopies
- the Listpublic boolean shiftToMean(MeanShiftCanopy canopy)
canopy
- the canopy to shift.
public boolean closelyBound(MeanShiftCanopy canopy, Vector point)
canopy
- a canopy.point
- a Vector point
public void testReferenceImplementation()
public static java.util.List<MeanShiftCanopy> clusterPoints(java.util.List<Vector> points, DistanceMeasure measure, double convergenceThreshold, double t1, double t2, int numIter)
points
- the input Listmeasure
- the DistanceMeasure to usenumIter
- the maximum number of iterationspublic static boolean runMeanShiftCanopyIteration(java.util.List<MeanShiftCanopy> canopies, MeanShiftCanopyClusterer clusterer)
canopies
- the List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |