I need a simulation framework in Javascript, which is open source.
With the simulation framework can create probability distribution:
- normal distribution
- discrete distribution
- triangular distribution
Using the jstat Framework I can only create the normal distribution.
Is there any better simulation framework in Javascript?
Or how can I use jstat to create discrete and triangular distribution?
Take a look at SIM.JS random library. It has normal and triangular distributions, while discrete can be simulated using special algorithms like Alastair Walker’s method described in his paper “An efficient method for generating discrete random variables with general distributions” (through it seems to be unavailable for public access).