| 
               | 
            
              ICentroidClusterCollectionTData, TCentroids, TCluster Interface | 
          
Namespace: Accord.MachineLearning
public interface ICentroidClusterCollection<TData, TCentroids, TCluster> : IClusterCollectionEx<TData, TCluster>, IEnumerable
The ICentroidClusterCollectionTData, TCentroids, TCluster type exposes the following members.
| Name | Description | |
|---|---|---|
| Centroids | 
              Gets or sets the clusters' centroids.
              | |
| Clusters | 
              Gets the collection of clusters currently modeled by the clustering algorithm.
              (Inherited from IClusterCollectionExTData, TCluster.) | |
| Count | 
              Gets the number of clusters in the collection.
              (Inherited from IClusterCollectionExTData, TCluster.) | |
| Distance | 
              Gets or sets the distance function used to measure the distance
              between a point and the cluster centroid in this clustering definition.
              | |
| Item | 
              Gets the cluster at the given index.
              (Inherited from IClusterCollectionExTData, TCluster.) | |
| Proportions | 
            Gets the proportion of samples in each cluster.
              (Inherited from IClusterCollectionExTData, TCluster.) | 
| Name | Description | |
|---|---|---|
| Distortion | 
              Calculates the average square distance from the data points 
              to the nearest clusters' centroids.
              | |
| GetEnumerator | Returns an enumerator that iterates through a collection.  (Inherited from IEnumerable.) | |
| Transform(TData, Double, Double) | 
              Transform data points into feature vectors containing the 
              distance between each point and each of the clusters.
              | |
| Transform(TData, Int32, Double, Double) | 
              Transform data points into feature vectors containing the 
              distance between each point and each of the clusters.
              | 
| Name | Description | |
|---|---|---|
| SetEqualsTCluster | 
              Compares two enumerables for set equality. Two
              enumerables are set equal if they contain the
              same elements, but not necessarily in the same
              order.
              (Defined by Matrix.) |