Class ClusteringFeature
- java.lang.Object
-
- elki.clustering.hierarchical.birch.ClusteringFeature
-
public class ClusteringFeature extends java.lang.Object
Clustering Feature of BIRCH- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description ClusteringFeature(int dimensionality)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addToStatistics
protected void addToStatistics(NumberVector nv)
Add a number vector to the current node.- Parameters:
nv
- Vector to add
-
addToStatistics
protected void addToStatistics(ClusteringFeature other)
Merge an other clustering features.- Parameters:
other
- Other CF
-
resetStatistics
protected void resetStatistics()
Reset the CF to zero. For use in splitting.
-
centroid
public double centroid(int i)
Centroid value in dimension i.- Parameters:
i
- Dimension- Returns:
- Average, or zero
-
sumOfSumOfSquares
public double sumOfSumOfSquares()
Sum over all dimensions of sums of squares.- Returns:
- Sum of SS
-
sumOfSquaresOfSums
public double sumOfSquaresOfSums()
Sum over all dimensions of squares of linear sums.- Returns:
- Sum of LS
-
getDimensionality
public int getDimensionality()
Dimensionality of the clustering feature.- Returns:
- Dimensionality
-
sumOfSquares
public static double sumOfSquares(NumberVector v)
Compute the sum of squares of a vector.- Parameters:
v
- Vector- Returns:
- Sum of squares
-
-