gaussian-distribution

Install

$ npm install gaussian-pdf

Test

let pdf = require('gaussian-pdf')
pdf() // -> -1.12565465

API pdf([mu = 0, sigma = 1])

The function receive the mu and sigma params to normal distribution, default values are mu = 0 and sigma = 1.

If we do a plot using the plot-distribution module we obtain:

-2.00******
-1.90*******
-1.80******
-1.70********
-1.60********
-1.50***********
-1.40*************
-1.30**************
-1.20****************
-1.10****************
-1.00******************
-0.90************************
-0.80**********************
-0.70**************************
-0.60****************************
-0.50***************************
-0.40***************************
-0.30*****************************
-0.20*****************************
-0.10****************************
0.00******************************
0.10****************************
0.20*******************************
0.30***************************
0.40**************************
0.50**********************
0.60************************
0.70**********************
0.80********************
0.90*******************
1.00***************
1.10****************
1.20*************
1.30***********
1.40**********
1.50*********
1.60********
1.70*******
1.80******
1.90****

Built With

Share this project:

Updates