private static double getGaussianNoise(double mean, double sigma) {
		if (sigma == 0)
			return 0;
		double u = 1 - Math.random();
		double v = Math.random();
		double z = Math.sqrt(-2 * Math.log(u)) * Math.cos(2 * Math.PI * v);
		return mean + sigma * z;

	}