ClusterKMeans Constructor |
Constructor for ClusterKMeans.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public ClusterKMeans(
double[,] x,
double[,] cs
)
Public Sub New (
x As Double(,),
cs As Double(,)
)
public:
ClusterKMeans(
array<double,2>^ x,
array<double,2>^ cs
)
new :
x : float[,] *
cs : float[,] -> ClusterKMeans
Parameters
- x
- Type: SystemDouble
A double matrix containing the observations to be clustered.
- cs
- Type: SystemDouble
A double matrix containing the cluster seeds, i.e. estimates
for the cluster centers.
Exceptions Exception | Condition |
---|
ArgumentException |
is thrown if x.GetLength(0), x.GetLength(1) are equal
0, or cs.GetLength(0) is less than 1
|
See Also