/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package kmean348; import java.awt.geom.Point2D; import java.util.ArrayList; import java.util.List; import java.util.Scanner; /** * * @author Tak */ public class Main { private static final Scanner scannerObject = new Scanner(System.in); private static int k; private static int noOfInputPoints; private static List inputPoints; private static int noOfClusterPoints; private static List clusterPoints; private static int[] groupOfElement; /** * @param args the command line arguments */ public static void main(String[] args) { System.out.print("Enter the value of k: "); k = scannerObject.nextInt(); System.out.print("Enter the number of inputs: "); noOfInputPoints = scannerObject.nextInt(); groupOfElement = new int[noOfInputPoints]; inputPoints = new ArrayList(); //get the input points for (int i=0; i(); for (int i=0; i