private double Gauss(Neuron winner, int it)
    {
	//Calculate the distance between this neuron, and
	//the winning neuron

	double distance = Math.sqrt(Math.pow(winner.X - X, 2) + Math.pow(winner.Y - Y, 2));
	//Decreasing factor        Neighbourhood factor             
	return Math.exp(-Math.pow(distance, 2) / (Math.pow(Math.exp(-it / (1000 / Math.log(length))) * length, 2)));
    }