Click or drag to resize
Accord.NET (logo)

CentroidClusterTCollection, TData, TCentroid, TClusterDistortion Method

Computes the distortion of the cluster, measured as the average distance between the cluster points and its centroid.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public double Distortion(
	TData[] data
Request Example View Source


Type: TData
The input points.

Return Value

Type: Double
The average distance between all points in the cluster and the cluster centroid.
See Also