public class ClusKernel extends CFCluster
| Modifier and Type | Field and Description |
|---|---|
static double |
EPSILON
Numeric epsilon.
|
static double |
MIN_VARIANCE |
LS, N, radiusFactor, SS| Modifier | Constructor and Description |
|---|---|
protected |
ClusKernel(ClusKernel other)
Instantiates a copy of the given cluster.
|
|
ClusKernel(double[] point,
int dim)
A constructor that makes a Kernel which just represents the given point.
|
protected |
ClusKernel(int numberDimensions)
Constructor of the Cluster.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ClusKernel other)
Adds the given cluster to this cluster, without making this cluster
older.
|
protected void |
aggregate(ClusKernel other,
long timeDifference,
double negLambda)
Make this cluster older bei weighting it and add to this cluster the
given cluster.
|
double |
calcDistance(ClusKernel other)
Calculate the distance to this other cluster.
|
protected void |
clear()
Remove all points from this cluster.
|
double[] |
getCenter() |
CFCluster |
getCF() |
double |
getInclusionProbability(weka.core.Instance instance)
Returns the probability of the given point belonging to
this cluster.
|
double |
getRadius()
See interface
Cluster |
double[] |
getVarianceVector() |
double |
getWeight()
See interface
Cluster |
protected boolean |
isEmpty()
Check if this cluster is empty or not.
|
protected void |
makeOlder(long timeDifference,
double negLambda)
Make this cluster older.
|
protected void |
overwriteOldCluster(ClusKernel other)
Overwrites the LS, SS and weightedN in this cluster to the values of the
given cluster but adds N and classCount of the given cluster to this one.
|
add, addVectors, getN, setNcombine, getCenterDistance, getCenterDistance, getClusterSpecificInfo, getDistanceVector, getDistanceVector, getHullDistance, merge, overlapRadiusDegree, overlapSave, sample, setCenter, setRadius, setWeightgetDescription, getGroundTruth, getId, getInfo, getMeasureValue, isGroundTruth, setGroundTruth, setId, setMeasureValue, setMeasureValuecopy, copy, measureByteSize, measureByteSize, toStringpublic static final double EPSILON
public static final double MIN_VARIANCE
public ClusKernel(double[] point,
int dim)
point - The point to be converted into a corresponding Kernel.numberClasses - The number of classes possible for points in this
experiment(Tree).protected ClusKernel(int numberDimensions)
numberDimensions - Dimensionality of the points added that can be
added to this clusternumberClasses - The number of classes possible for points in this
experiment(Tree).protected ClusKernel(ClusKernel other)
other - The Cluster of which we make a copy.public void add(ClusKernel other)
other - protected void aggregate(ClusKernel other, long timeDifference, double negLambda)
add(Cluster).other - The other cluster to be added to this one.timeDifference - The time elapsed between the last update of the
Entry to which this cluster belongs and the update that
caused the call to this function.negLambda - A parameter needed to weight the cluster.#add(tree.Kernel)protected void makeOlder(long timeDifference,
double negLambda)
timeDifference - The time elapsed between this current update and
the last one.negLambda - public double calcDistance(ClusKernel other)
other - The other cluster to which the distance is calculated.protected boolean isEmpty()
true if the cluster has no data points,
false otherwise.protected void clear()
protected void overwriteOldCluster(ClusKernel other)
other - The cluster that should overwrite the information.public double getWeight()
CFClusterClustergetWeight in class CFClusterCluster.getWeight()public double[] getCenter()
public double getInclusionProbability(weka.core.Instance instance)
ClustergetInclusionProbability in class CFClusterpublic double getRadius()
Clusterpublic double[] getVarianceVector()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.