A simple demo example to reproduce gaussian distribution using box-muller method
Steps to reproduce :
- g++ -o gaussian gaussian.cpp
- octave gaussian.m
Time domain
Frequency domain
Credit : Code adapted from https://en.wikipedia.org/wiki/Marsaglia_polar_method