public List<Double> weightVectorLearning(ImageSet imageSet,int neuron){
        List<Double> weightVector = new ArrayList<Double>();
        for(int i = 0; i < neurons; i++){
            Double sum = 0.0;
            if(neuron != i){
                for(Map.Entry<Integer, List<Integer>> entry : imageSet.imageMap.entrySet()){
                    sum += (double)(entry.getValue().get(neuron)*entry.getValue().get(i));
                }
            }
            
            sum = sum/(double)neurons;
            weightVector.add(sum);
        }
        return weightVector;
    }