protected void changeNeuronWeight(int neuronNumber, double[] vector,
			int iteration, int distance) {
		double[] weightList = networkModel.getNeuron(neuronNumber).getWeight();
		int weightNumber = weightList.length;
		double weight;
		if (showComments) {
			String vectorText = "[";
			for (int i = 0; i < vector.length; i++) {
				vectorText += vector[i];
				if (i < vector.length - 1) {
					vectorText += ", ";
				}
			}
			vectorText += "]";
			System.out.println("Vector: " + vectorText);
			String weightText = "[";
			for (int i = 0; i < weightList.length; i++) {
				weightText += weightList[i];
				if (i < weightList.length - 1) {
					weightText += ", ";
				}
			}
			weightText += "]";
			System.out.println("Neuron " + (neuronNumber + 1)
					+ " weight before change: " + weightText);
		}
		for (int i = 0; i < weightNumber; i++) {
			weight = weightList[i];
			weightList[i] += functionalModel.getValue(iteration)
					* neighboorhoodFunction.getValue(distance)
					* (vector[i] - weight);
		}
		networkModel.getNeuron(neuronNumber).setWeight(weightList);

		if (showComments) {
			String weightText = "[";
			for (int i = 0; i < weightList.length; i++) {
				weightText += weightList[i];
				if (i < weightList.length - 1) {
					weightText += ", ";
				}
			}
			weightText += "]";
			System.out.println("Neuron " + (neuronNumber + 1)
					+ " weight after change: " + weightText);
		}
	}