MultivariateMeansClustering Method

Compute k-means clusters of the data.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static MeansClusteringResult MeansClustering(
	this IReadOnlyList<IReadOnlyList<double>> columns,
	int m
)

Parameters

columns  IReadOnlyListIReadOnlyListDouble
The data columns on which to perform the analysis.
m  Int32
The number of clusters to compute.

Return Value

MeansClusteringResult
A description of the identified clusters.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyListIReadOnlyListDouble. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Note that the columns argument is column-oriented, i.e. it is a list of columns, not row-oriented, i.e. a list of rows. Either of these would match the method signature, but only column-oriented inputs will produce correct results.

Exceptions

ArgumentNullExceptioncolumns, or one of the columns in it, is .
DimensionMismatchExceptionNot all of the columns in columns have the same length.
ArgumentOutOfRangeExceptionThere are fewer data points than the request cluster number m.

See Also