VEGAS Monte Carlo code for integrating a function

I need a matlab code that implements the VEGAS Monte Carlo sampling method to integrate numerically a given function. I need both 1-D and 2-D integrals. In spite of my efforts, I was unable to find any matlab code for this task, and I don't feel like translating one of the existing C++ or Fortran codes (e.g. Numerical Recipes).
Thank you very much.

Réponses (1)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by