Constructor for ClusterKMeans.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public ClusterKMeans(
	double[,] x,
	double[,] cs
)
Visual Basic (Declaration)
Public Sub New ( _
	x As Double(,), _
	cs As Double(,) _
)
Visual C++
public:
ClusterKMeans(
	array<double,2>^ x, 
	array<double,2>^ cs
)

Parameters

x
Type: array< System..::.Double ,2>[,](,)[,]
A double matrix containing the observations to be clustered.
cs
Type: array< System..::.Double ,2>[,](,)[,]
A double matrix containing the cluster seeds, i.e. estimates for the cluster centers.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown if x.GetLength(0), x.GetLength(1) are equal 0, or cs.GetLength(0) is less than 1

See Also