Package moa.clusterers.clustream
Class ClustreamKernel
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.cluster.Cluster
-
- moa.cluster.SphereCluster
-
- moa.cluster.CFCluster
-
- moa.clusterers.clustream.ClustreamKernel
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class ClustreamKernel extends CFCluster
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
LST
static double
MIN_VARIANCE
protected double
SST
-
Fields inherited from class moa.cluster.CFCluster
LS, N, radiusFactor, SS
-
-
Constructor Summary
Constructors Constructor Description ClustreamKernel(Instance instance, int dimensions, long timestamp, double t, int m)
ClustreamKernel(ClustreamKernel cluster, double t, int m)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CFCluster other2)
double[]
getCenter()
CFCluster
getCF()
protected void
getClusterSpecificInfo(ArrayList<String> infoTitle, ArrayList<String> infoValue)
double
getInclusionProbability(Instance instance)
See interfaceCluster
double
getRadius()
See interfaceCluster
double
getRelevanceStamp()
void
insert(Instance instance, long timestamp)
static double
inverseError(double x)
Approximates the inverse error function.boolean
isEmpty()
Check if this cluster is empty or not.-
Methods inherited from class moa.cluster.CFCluster
addVectors, getN, getWeight, setN
-
Methods inherited from class moa.cluster.SphereCluster
combine, getCenterDistance, getCenterDistance, 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
-
-
-
-
Field Detail
-
MIN_VARIANCE
public static final double MIN_VARIANCE
- See Also:
- Constant Field Values
-
LST
protected double LST
-
SST
protected double SST
-
-
Constructor Detail
-
ClustreamKernel
public ClustreamKernel(Instance instance, int dimensions, long timestamp, double t, int m)
-
ClustreamKernel
public ClustreamKernel(ClustreamKernel cluster, double t, int m)
-
-
Method Detail
-
insert
public void insert(Instance instance, long timestamp)
-
getRelevanceStamp
public double getRelevanceStamp()
-
getRadius
public double getRadius()
Description copied from class:CFCluster
See interfaceCluster
-
getCenter
public double[] getCenter()
-
getInclusionProbability
public double getInclusionProbability(Instance instance)
See interfaceCluster
- Specified by:
getInclusionProbability
in classCFCluster
- Parameters:
instance
-- Returns:
- a value between 0 and 1
-
isEmpty
public boolean isEmpty()
Check if this cluster is empty or not.- Returns:
true
if the cluster has no data points,false
otherwise.
-
inverseError
public static double inverseError(double x)
Approximates the inverse error function. Clustream needs this.- Parameters:
x
-
-
getClusterSpecificInfo
protected void getClusterSpecificInfo(ArrayList<String> infoTitle, ArrayList<String> infoValue)
- Overrides:
getClusterSpecificInfo
in classSphereCluster
-
-