Package elki.index.tree.betula.features
Interface ClusterFeature
-
- All Superinterfaces:
AsClusterFeature,elki.data.FeatureVector<java.lang.Number>,elki.data.NumberVector,elki.data.spatial.SpatialComparable
- All Known Implementing Classes:
BIRCHCF,VIIFeature,VVIFeature,VVVFeature
public interface ClusterFeature extends AsClusterFeature, elki.data.NumberVector
Interface for basic ClusteringFeature functions- Since:
- 0.8.0
- Author:
- Andreas Lang
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceClusterFeature.Factory<F extends ClusterFeature>Cluster feature factory
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddToStatistics(elki.data.NumberVector nv)Add NumberVector to CFvoidaddToStatistics(ClusterFeature other)Add other CF to CFdoublecentroid(int d)Returns the mean of the specified dimension.double[][]covariance()returns the covariance matrixdefault doubledoubleValue(int dimension)default ClusterFeaturegetCF()Get as clustering feature.intgetWeight()Return the weightdefault longlongValue(int dimension)voidresetStatistics()Resets all statistics of CFdoublesumdev()Returns the total sum of Deviations.doublevariance()Returns the total variance.doublevariance(int d)Returns the variance in the specified dimension.
-
-
-
Method Detail
-
addToStatistics
void addToStatistics(elki.data.NumberVector nv)
Add NumberVector to CF- Parameters:
nv- NumberVector
-
addToStatistics
void addToStatistics(ClusterFeature other)
Add other CF to CF- Parameters:
other- other CF
-
resetStatistics
void resetStatistics()
Resets all statistics of CF
-
getWeight
int getWeight()
Return the weight- Returns:
- weight of CF
-
centroid
double centroid(int d)
Returns the mean of the specified dimension.- Parameters:
d- dimension- Returns:
- mean of this dimension
-
doubleValue
default double doubleValue(int dimension)
- Specified by:
doubleValuein interfaceelki.data.NumberVector
-
longValue
default long longValue(int dimension)
- Specified by:
longValuein interfaceelki.data.NumberVector
-
variance
double variance()
Returns the total variance.- Returns:
- variance.
-
sumdev
double sumdev()
Returns the total sum of Deviations.- Returns:
- Sum of Deviations.
-
variance
double variance(int d)
Returns the variance in the specified dimension.- Parameters:
d- dimension- Returns:
- variance in this dimension.
-
covariance
double[][] covariance()
returns the covariance matrix- Returns:
- covariance
-
getCF
default ClusterFeature getCF()
Description copied from interface:AsClusterFeatureGet as clustering feature.- Specified by:
getCFin interfaceAsClusterFeature- Returns:
- Clustering feature
-
-