|
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
Syntax public double Distortion(
TData[] data
)
Public Function Distortion (
data As TData()
) As Double
Request Example
View SourceParameters
- data
- Type: TData
The input points.
Return Value
Type:
DoubleThe average distance between all points
in the cluster and the cluster centroid.
See Also