Package moa.clusterers.macro
Class NonConvexCluster
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.cluster.Cluster
-
- moa.cluster.SphereCluster
-
- moa.cluster.CFCluster
-
- moa.clusterers.macro.NonConvexCluster
-
- All Implemented Interfaces:
Serializable
,IDenseMacroCluster
,MOAObject
- Direct Known Subclasses:
GridCluster
public class NonConvexCluster extends CFCluster implements IDenseMacroCluster
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.cluster.CFCluster
LS, N, radiusFactor, SS
-
-
Constructor Summary
Constructors Constructor Description NonConvexCluster(CFCluster cluster, List<CFCluster> microclusters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CFCluster
getCF()
Clustering
getClustering()
double
getInclusionProbability(Instance instance)
Returns the probability of the given point belonging to this cluster.List<CFCluster>
getMicroClusters()
double
getRadius()
See interfaceCluster
void
insert(CFCluster cf)
void
remove(CFCluster cf)
-
Methods inherited from class moa.cluster.CFCluster
add, addVectors, getCenter, getN, getWeight, setN
-
Methods inherited from class moa.cluster.SphereCluster
combine, getCenterDistance, getCenterDistance, getClusterSpecificInfo, getDistanceVector, getDistanceVector, getHullDistance, merge, overlapRadiusDegree, overlapSave, sample, setCenter, setRadius, setWeight
-
Methods inherited from class moa.cluster.Cluster
getDescription, getGroundTruth, getId, getInfo, getMeasureValue, isGroundTruth, setGroundTruth, setId, setMeasureValue, setMeasureValue
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Method Detail
-
insert
public void insert(CFCluster cf)
-
remove
public void remove(CFCluster cf)
-
getInclusionProbability
public double getInclusionProbability(Instance instance)
Description copied from class:Cluster
Returns the probability of the given point belonging to this cluster.- Specified by:
getInclusionProbability
in classCFCluster
- Returns:
- a value between 0 and 1
-
getRadius
public double getRadius()
Description copied from class:CFCluster
See interfaceCluster
-
getClustering
public Clustering getClustering()
- Specified by:
getClustering
in interfaceIDenseMacroCluster
-
getMicroClusters
public List<CFCluster> getMicroClusters()
- Specified by:
getMicroClusters
in interfaceIDenseMacroCluster
-
-