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.

Risposte (1)

Richiesto:

il 18 Mar 2014

Risposto:

il 27 Giu 2014

Community Treasure Hunt

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

Start Hunting!

Translated by