Package moa.clusterers.denstream
Class MicroCluster
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.cluster.Cluster
-
- moa.cluster.SphereCluster
-
- moa.cluster.CFCluster
-
- moa.clusterers.denstream.MicroCluster
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class MicroCluster extends CFCluster
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.cluster.CFCluster
LS, N, radiusFactor, SS
-
-
Constructor Summary
Constructors Constructor Description MicroCluster(double[] center, int dimensions, long creationTimestamp, double lambda, Timestamp currentTimestamp)
MicroCluster(Instance instance, int dimensions, long timestamp, double lambda, Timestamp currentTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicroCluster
copy()
This method produces a copy of this object.double[]
getCenter()
CFCluster
getCF()
long
getCreationTime()
double
getInclusionProbability(Instance instance)
Returns the probability of the given point belonging to this cluster.long
getLastEditTimestamp()
double
getRadius()
See interfaceCluster
double
getRadius(long timestamp)
double
getWeight()
See interfaceCluster
void
insert(Instance instance, long timestamp)
-
Methods inherited from class moa.cluster.CFCluster
add, addVectors, getN, 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, measureByteSize, measureByteSize, toString
-
-
-
-
Method Detail
-
insert
public void insert(Instance instance, long timestamp)
-
getLastEditTimestamp
public long getLastEditTimestamp()
-
getWeight
public double getWeight()
Description copied from class:CFCluster
See interfaceCluster
- Overrides:
getWeight
in classCFCluster
- Returns:
- The weight.
- See Also:
Cluster.getWeight()
-
getCreationTime
public long getCreationTime()
-
getCenter
public double[] getCenter()
-
getRadius
public double getRadius()
Description copied from class:CFCluster
See interfaceCluster
-
getRadius
public double getRadius(long timestamp)
-
copy
public MicroCluster copy()
Description copied from interface:MOAObject
This method produces a copy of this object.- Specified by:
copy
in interfaceMOAObject
- Overrides:
copy
in classAbstractMOAObject
- Returns:
- a copy of this object
-
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
-
-