Monte Carlo Integration provides a method to estimate complex integrals through the random sampling of points. For a function
This can be approximated as a Riemann sum through the random sampling of N points and the corresponding function values-
where
The accuracy of the approximation improves as
Ideally, the probability distribution function should resemble the shape of the curve.
This class was created for use in my Quantum Monte Carlo Methods repository.