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.7.0
Syntax
public double Distortion(
	TData[] data
)
Request Example View Source

Parameters

data
Type: TData
The input points.

Return Value

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