Class ClusteringFeature
- java.lang.Object
-
- elki.clustering.hierarchical.birch.ClusteringFeature
-
public class ClusteringFeature extends java.lang.ObjectClustering 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 voidaddToStatistics(ClusteringFeature other)Merge an other clustering features.protected voidaddToStatistics(NumberVector nv)Add a number vector to the current node.doublecentroid(int i)Centroid value in dimension i.intgetDimensionality()Dimensionality of the clustering feature.protected voidresetStatistics()Reset the CF to zero.static doublesumOfSquares(NumberVector v)Compute the sum of squares of a vector.doublesumOfSquaresOfSums()Sum over all dimensions of squares of linear sums.doublesumOfSumOfSquares()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
-
-