public class ClusteringFeature
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) double[] |
ls
Linear sum.
|
(package private) int |
n
Number of objects
|
(package private) double |
ss
Sum of squares (see original thesis, this is a scalar).
|
Constructor and Description |
---|
ClusteringFeature(int dimensionality)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToStatistics(ClusteringFeature other)
Merge an other clustering features.
|
protected void |
addToStatistics(NumberVector nv)
Add a number vector to the current node.
|
double |
centroid(int i)
Centroid value in dimension i.
|
int |
getDimensionality()
Dimensionality of the clustering feature.
|
protected void |
resetStatistics()
Reset the CF to zero.
|
static double |
sumOfSquares(NumberVector v)
Compute the sum of squares of a vector.
|
double |
sumOfSquaresOfSums()
Sum over all dimensions of squares of linear sums.
|
double |
sumOfSumOfSquares()
Sum over all dimensions of sums of squares.
|
int n
double[] ls
double ss
public ClusteringFeature(int dimensionality)
dimensionality
- Dimensionalityprotected void addToStatistics(NumberVector nv)
nv
- Vector to addprotected void addToStatistics(ClusteringFeature other)
other
- Other CFprotected void resetStatistics()
public double centroid(int i)
i
- Dimensionpublic double sumOfSumOfSquares()
public double sumOfSquaresOfSums()
public int getDimensionality()
public static double sumOfSquares(NumberVector v)
v
- VectorCopyright © 2019 ELKI Development Team. License information.