KMeansClusterAnalysis.GetDistancesToCenters Method

Returns a Vector<T> that contains the distance of each observation to its cluster center.

Definition

Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
C#
public Vector<double> GetDistancesToCenters()

Return Value

Vector<Double>
A Vector<T>.

Remarks

This method is only available when the model is fitted. It throws an InvalidOperationException if the model is empty or deployed.

See Also