Java Gauss gaussian(double mu, double sigma, double x)

Here you can find the source of gaussian(double mu, double sigma, double x)

Description

gaussian

License

Apache License

Declaration

public static double gaussian(double mu, double sigma, double x) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double gaussian(double mu, double sigma, double x) {
        return Math.exp(-0.5 * Math.pow((x - mu), 2) / Math.pow(sigma, 2))
                / (Math.sqrt(2 * Math.PI * Math.pow(sigma, 2)));
    }//from   w  w  w.  j a  v  a2  s.  c  o  m
}

Related

  1. gauss(final double mean, final double sigma, final double x)
  2. gauss(int N, long seed)
  3. GaussElimination(double a[][])
  4. gaussian(double a[][], int index[])
  5. gaussian(double mu, double sigma, double x)
  6. gaussian(double t)
  7. gaussian(double x, double sigma)
  8. gaussian(double[] d, double sigma, double mean)
  9. gaussian(double[][] A, double[] b)