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
Syntax
public static MeansClusteringResult MeansClustering(
	this IReadOnlyList<IReadOnlyList<double>> columns,
	int m
)

Parameters

columns
Type: System.Collections.GenericIReadOnlyListIReadOnlyListDouble
The data columns on which to perform the analysis.
m
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).
Exceptions
ExceptionCondition
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.
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.

See Also