Click or drag to resize
Accord.NET (logo)

ICentroidClusterCollectionTData, TCluster Interface

Common interface for clusters that contains centroids which are of the same data type as the clustered data types (i.e. KMeansClusterCollectionKMeansCluster).

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public interface ICentroidClusterCollection<TData, TCluster> : ICentroidClusterCollection<TData, TData, TCluster>, 
	IClusterCollectionEx<TData, TCluster>, IEnumerable

Type Parameters

TData
TCluster

The ICentroidClusterCollectionTData, TCluster type exposes the following members.

Properties
  NameDescription
Public propertyCentroids
Gets or sets the clusters' centroids.
(Inherited from ICentroidClusterCollectionTData, TCentroids, TCluster.)
Public propertyClusters
Gets the collection of clusters currently modeled by the clustering algorithm.
(Inherited from IClusterCollectionExTData, TCluster.)
Public propertyCount
Gets the number of clusters in the collection.
(Inherited from IClusterCollectionExTData, TCluster.)
Public propertyDistance
Gets or sets the distance function used to measure the distance between a point and the cluster centroid in this clustering definition.
(Inherited from ICentroidClusterCollectionTData, TCentroids, TCluster.)
Public propertyItem
Gets the cluster at the given index.
(Inherited from IClusterCollectionExTData, TCluster.)
Public propertyProportions
Gets the proportion of samples in each cluster.
(Inherited from IClusterCollectionExTData, TCluster.)
Top
Methods
  NameDescription
Public methodDistortion
Calculates the average square distance from the data points to the nearest clusters' centroids.
(Inherited from ICentroidClusterCollectionTData, TCentroids, TCluster.)
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from IEnumerable.)
Public methodTransform(TData, Double, Double)
Transform data points into feature vectors containing the distance between each point and each of the clusters.
(Inherited from ICentroidClusterCollectionTData, TCentroids, TCluster.)
Public methodTransform(TData, Int32, Double, Double)
Transform data points into feature vectors containing the distance between each point and each of the clusters.
(Inherited from ICentroidClusterCollectionTData, TCentroids, TCluster.)
Top
Extension Methods
  NameDescription
Public Extension MethodSetEqualsTCluster
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.)
Top
See Also