KMeans Class |
Namespace: FinMath.ClusterAnalysis
public class KMeans : BaseClustering
The KMeans type exposes the following members.
Name | Description | |
---|---|---|
ClustersCount |
Returns number of clusters in partition.
(Inherited from BaseClustering.) | |
Iterations |
Number of iterations performed.
| |
MetricType | (Inherited from BaseClustering.) | |
Random |
Random generator for next point selection.
| |
Status |
Method status.
(Inherited from BaseClustering.) |
Name | Description | |
---|---|---|
CentralElements |
Get indices of central elements, one per cluster.
(Inherited from BaseClustering.) | |
Centroids |
Returns Centroid matrix, each row represent centroid of corresponding cluster.
Columns corresponds to factors.
(Inherited from BaseClustering.) | |
ClearCache |
Evaluate all lazy-evaluated properties and clear cached data.
(Inherited from BaseClustering.) | |
Clusterize |
Find nearest cluster by centroid distance
(Inherited from BaseClustering.) | |
ClustersAssignment |
Return array which contains assignment objects for clusters.
ClustersAssignment[i] contain assignment of i-th object.
(Inherited from BaseClustering.) | |
ComputeClustering(Matrix) |
Method which perform clustering analysis.
(Overrides BaseClusteringComputeClustering(Matrix).) | |
ComputeClustering(Matrix, MetricType) |
Method which perform clustering analysis.
(Overrides BaseClusteringComputeClustering(Matrix, MetricType).) | |
ComputeClustering(Matrix, MetricType, Boolean) |
Method which perform clustering analysis.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetCluster |
Get cluster as array of indices of assigned elements.
(Inherited from BaseClustering.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetClustersAssignment |
Allows you to set initial cluster assignment.
For each sample you must specify integer number from 1 to clusterCount, index of cluster it was assigned.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |