Click or drag to resize

MultivariateMeansClustering Method

Compute k-means clusters of the data.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
public static MeansClusteringResult MeansClustering(
	this IReadOnlyList<IReadOnlyList<double>> columns,
	int m


Type: System.Collections.GenericIReadOnlyListIReadOnlyListDouble
The data columns on which to perform the analysis.
Type: SystemInt32
The number of clusters to compute.

Return Value

Type: 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).
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.

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.

See Also