/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dwm; import java.util.Random; import java.util.Scanner; /** * * @author sakec */ public class KMean2D { @SuppressWarnings("empty-statement") public static void main(String args[]) { float input[][],adjmat[][],clustercentroid[][],grpmat[][],temp[][],tempgrp[][]; int n,i,j,cnt,cnt1,cluster1[],cluster2[]; boolean flag=true; float c1x,c1y,c2x,c2y; Scanner sc= new Scanner(System.in); System.out.print("Enter the number of inputs="); n=sc.nextInt(); input=new float[n][2]; adjmat=new float[n][n]; clustercentroid=new float[2][2]; grpmat=new float[2][n]; temp=new float[2][n]; tempgrp=new float[2][n]; for(i=0;i