Click or drag to resize

KMeans_Double1D Class

Specialized KMeansTData, TDataSum for one dimensional double values.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.ClusteringKMeansDouble, Double
    Altaxo.Calc.ClusteringKMeans_Double1D

Namespace: Altaxo.Calc.Clustering
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class KMeans_Double1D : KMeans<double, double>

The KMeans_Double1D type exposes the following members.

Constructors
 NameDescription
Public methodKMeans_Double1DInitializes a new instance of the KMeans_Double1D class
Top
Properties
 NameDescription
Public propertyClusterCounts Gets a list which contains the number of values in each of the clusters (length is numberOfClusters).
(Inherited from KMeansTData, TDataSum)
Public propertyClusterIndices Gets a list with the same length as the number of data points, in which each element is the index of the cluster this data point is assigned to.
(Inherited from KMeansTData, TDataSum)
Public propertyClusterMeans Gets a list which contains the mean values of the clusters (length is numberOfClusters).
(Inherited from KMeansTData, TDataSum)
Public propertyData Gets a list which contains the data points provided.
(Inherited from KMeansTData, TDataSum)
Public propertyHasPatchingEmptyClustersFailed If true, during evaluation, empty clusters have appeared, which could not be patched with other data.
(Inherited from KMeansTData, TDataSum)
Public propertyHasReachedMaximumNumberOfIterations If true, the evaluation has reached the maximum number of iterations, without converging.
(Inherited from KMeansTData, TDataSum)
Public propertySortingOfClusterValues Get/sets the sorting of cluster values after evaluation. It presumes that the generic type TDataSum implements the IComparable interface.
(Inherited from KMeansTData, TDataSum)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEvaluate Clusters the provided data. Please note that the data are not normalized. Thus, for multidimensional data, please normalize the data before!
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateClustersStandardDeviation Evaluates for each cluster the standard deviation, i.e. the square root ( of the sum of squared distances divided by N-1)
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateDaviesBouldinIndex(FuncTDataSum, TDataSum, Double) Evaluates the Davies-Bouldin-Index. The exponent q (see EvaluateDaviesBouldinIndex(FuncTDataSum, TDataSum, Double, Int32)) is set to 1, meaning that the mean Euclidean distance of the points to their respective centroid is used in the nominator.
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateDaviesBouldinIndex(FuncTDataSum, TDataSum, Double, Int32) Evaluates the Davies-Bouldin-Index. The exponent q (used to calculate the average distance of the cluster points to their centroid) can be set as parameter.
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateMean2ndMomentOfDistances Evaluates for each cluster the 2nd moment of the distances, i.e. the square root of the average of the squared Euclidean distances (or whatever the distance function is) of the points to their respective centroid.
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateMeanDistances Evaluates for each cluster the mean distance, i.e. the average of the Euclidean distances (or whatever the distance function is) of the points to their respective centroid.
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateMeanNthMomentOfDistances Evaluates for each cluster the mean distance, i.e. the square root ( of the sum of squared distances divided by N)
(Inherited from KMeansTData, TDataSum)
Public methodEvaluateSumOfSquaredDistancesToClusterMean Evaluates the sum of (squared distance of each point to its cluster center).
(Inherited from KMeansTData, TDataSum)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodGetFarthestPoint Returns the index of the point that is farthest outside the mean of its cluster.
(Inherited from KMeansTData, TDataSum)
Protected methodGetFarthestPointOfBiggestCluster Returns the index of the point that is farthest outside the mean of its cluster.
(Inherited from KMeansTData, TDataSum)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitializeCentroidsAtRandom Initialize the centroids with a randomly choosen value from the data set. Initializing in this way gives poor clustering results, thus we don't use it currently. Advantage: much faster than InitializeCentroidsUsingKMeansPlusPlus.
(Inherited from KMeansTData, TDataSum)
Protected methodInitializeCentroidsUsingKMeansPlusPlus Initializes the cluster mean values using the KMeans++ procedure (http://en.wikipedia.org/wiki/K-means%2B%2B). This is slower than InitializeCentroidsAtRandom, but after initializing in this way, significant lesser iterations are neccessary.
(Inherited from KMeansTData, TDataSum)
Protected methodInternalEvaluateMeanNthMomentOfDistances Evaluates for each cluster the 2nd moment of the distances, i.e. the square root of the average of the squared Euclidean distances (or whatever the distance function is) of the points to their respective centroid.
(Inherited from KMeansTData, TDataSum)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodPatchEmptyClusters Tries to fill up empty clusters, by searching the biggest cluster, and then use the farthest point from that biggest cluster to move to the empty cluster.
(Inherited from KMeansTData, TDataSum)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryEvaluate Clusters the provided data. Please note that the data are not normalized. Thus, for multidimensional data, please normalize the data before!
(Inherited from KMeansTData, TDataSum)
Protected methodUpdateClusterMeanValues Calculates the mean values of the clusters from the data points.
(Inherited from KMeansTData, TDataSum)
Protected methodUpdateEachPointsMembership Iterates over each data point, and determines to which cluster it belongs.
(Inherited from KMeansTData, TDataSum)
Top
See Also