multivariate-gaussian
Multivariate normal distribution density function implemented in javascript
How to use
var Gaussian = ; var distribution_parameters = // n*n covariance matrix sigma : 1 05 05 1 // n-dimensional mean vector mu : 0 0 var my_gaussian = distribution_parameters; my_gaussian; // Returns the value of the density function at (0,0)
Tests
You can run tests with npm test
in the main folder of this repo.
This library uses standard ES5 syntax, and works in all versions node and in the browser.