@SuppressWarnings("unchecked")
	public void clusterMapping() {
		
		clustersMapping = (List<Integer>[]) new ArrayList[clustersCentroids.size()];
		for(int i = 0; i < clustersMapping.length; i++)
			clustersMapping[i] = new ArrayList<Integer> ();
		for(int i = 0; i < points.size(); i++) {
			double min = Double.MAX_VALUE;
			int clusterk = 0;
			for(int j = 0; j < clustersCentroids.size(); j++) {
			    double distance = euclideanDistance(points.get(i), clustersCentroids.get(j));
			    if(distance < min) {
			    	min = distance;
			    	clusterk = j;
			    }
			}
			clustersMapping[clusterk].add(i);
		}
	}