Hello Sergey,
I would like to use the procedure KMeansGenerate.
But I don't sure that I understood the description of input parameters of this procedure.
I have the symmetric square matrix A, N=22 is size, each element Aij is a distance between two objects, and diagonal elements are Aij=0.
I have specified input parameters like that:
Code:
N:=22;
K := 5; // desired number of clusters, K>=1
NPoints := N; // dataset size, NPoints>=K
NVars := N; // number of variables, NVars>=1
Is it OK? In what case "NPoints" is not equal "NVars"?
Also I would like to know can I obtain the specific solution for my dataset? Random functions are used in the code:
Code:
I := RandomInteger(NPoints);
and
Code:
V := RandomReal;
I have using my dataset but results are different.
I set:
Code:
Restarts := 3; // number of restarts, Restarts>=1
Thanks.