
Hi, now am analysing one project from that project the below module was came. why we use that module what is the use of this module........
public void Start_Clustering() { int Clusters = jslNClusters.getValue(); //3; int Rows = jtblCluster.getRowCount() - 1; int Iterations = maxIterationsValues[jslFuzziness.getValue()];//100; float Eps = epsilonValues[jslEps.getValue()]; //0.5f; float fuzziness =fuzzinessValues[jslFuzziness.getValue()]; // 2.0f; float[] Datasets = new float[Rows];
lstClusterCenters.clear();
for(int r = 0; r< Rows; r++) {
Datasets[r] =Float.valueOf(jtblOriginal.getValueAt(r, 1).toString());
}
if(Datasets.length > 0) {
FCM = new
FuzzyCMeansAlgorithm(Datasets, Clusters, Rows, Iterations, Eps, fuzziness);
FCM.StartClustering();
lstClusterCenters.add("ALL");
for(int i=1; i <= Clusters; i++) {
lstClusterCenters.add("Cluster " + i);
}
LoadClusterOutput(0, "ALL");
getClustersOutput();
int outp = 0;
for(int i = 0; i < FCM.points; i++) {
for(int c = 0; c <Clusters; c++) {
outp += FCM.Group_Cluster[c][i];
}
if(outp > 1) {
System.out.println("Mismatched Row : " + outp);
}
outp = 0;
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.