public abstract class CFCluster extends SphereCluster
Modifier and Type | Field and Description |
---|---|
double[] |
LS
Linear sum of all the points added to the cluster.
|
protected double |
N
Number of points in the cluster.
|
protected double |
radiusFactor |
double[] |
SS
Squared sum of all the points added to the cluster.
|
Modifier | Constructor and Description |
---|---|
|
CFCluster(CFCluster cluster) |
|
CFCluster(double[] center,
int dimensions) |
|
CFCluster(weka.core.Instance instance,
int dimensions)
Instantiates an empty kernel with the given dimensionality.
|
protected |
CFCluster(int dimensions) |
Modifier and Type | Method and Description |
---|---|
void |
add(CFCluster cluster) |
static void |
addVectors(double[] a1,
double[] a2)
Adds the second array to the first array element by element.
|
double[] |
getCenter() |
abstract CFCluster |
getCF() |
abstract double |
getInclusionProbability(weka.core.Instance instance)
Returns the probability of the given point belonging to
this cluster.
|
double |
getN() |
abstract double |
getRadius()
See interface
Cluster |
double |
getWeight()
See interface
Cluster |
void |
setN(double N) |
combine, getCenterDistance, getCenterDistance, getClusterSpecificInfo, getDistanceVector, getDistanceVector, getHullDistance, merge, overlapRadiusDegree, overlapSave, sample, setCenter, setRadius, setWeight
getDescription, getGroundTruth, getId, getInfo, getMeasureValue, isGroundTruth, setGroundTruth, setId, setMeasureValue, setMeasureValue
copy, copy, measureByteSize, measureByteSize, toString
protected double radiusFactor
protected double N
public double[] LS
public double[] SS
public CFCluster(weka.core.Instance instance, int dimensions)
dimensions
- The number of dimensions of the points that can be in
this kernel.protected CFCluster(int dimensions)
public CFCluster(double[] center, int dimensions)
public CFCluster(CFCluster cluster)
public void add(CFCluster cluster)
public abstract CFCluster getCF()
public double[] getCenter()
getCenter
in class SphereCluster
public abstract double getInclusionProbability(weka.core.Instance instance)
Cluster
getInclusionProbability
in class SphereCluster
public abstract double getRadius()
Cluster
getRadius
in class SphereCluster
public double getWeight()
Cluster
getWeight
in class SphereCluster
Cluster.getWeight()
public void setN(double N)
public double getN()
public static void addVectors(double[] a1, double[] a2)
a1
- Vector to which the second vector is added.a2
- Vector to be added. This vector does not change.Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.