Java Gaussian hashToGaussian(int h)

Here you can find the source of hashToGaussian(int h)

Description

hash To Gaussian

License

Open Source License

Declaration

public static double hashToGaussian(int h) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Random;

public class Main {
    public static double hashToGaussian(int h) {
        Random random = new Random(h);
        for (int i = 0; i < 5; i++) {
            random.nextGaussian();//w  w  w.java2 s  .  c o m
            random.nextGaussian();
            random.nextGaussian();
            random.nextGaussian();
            random.nextGaussian();
        }
        return random.nextGaussian();
    }
}

Related

  1. addGaussianNoise(double[][] d, double m, double v)
  2. gaussian()
  3. getGaussian()
  4. getGaussian(double aMean, double aVariance)
  5. RandGaussian()