src/gaussian.js
function gauss(x, s) {
    // 2.5066282746310005 is sqrt(2*pi)
    return Math.exp(-0.5 * x*x / (s*s)) / (s * 2.5066282746310005);
}
function gauss(x, s) {
    // 2.5066282746310005 is sqrt(2*pi)
    return Math.exp(-0.5 * x*x / (s*s)) / (s * 2.5066282746310005);
}
function gauss ( x , s ) { // 2.5066282746310005 is sqrt(2*pi) return Math . exp ( - 0.5 * x * x / ( s * s ) ) / ( s * 2.5066282746310005 ) ; }
Returns the value at X of a Gaussian distribution with standard deviation S.
Returns the value at X of a Gaussian distribution with standard deviation S .