Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

BasileVu/SIO_MonteCarlo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SIO_MonteCarlo

A small project done in the Simulation and Optimization course at HEIG-VD. The idea is to use three algorithms in order to compute statistically the integral of a function over a given interval:

  • Uniform sampling
  • Importance sampling
  • Uniform sampling with the control variable method

Three methods can be used in order to create the samplings (that contain the estimated area, its confidence interval at 95% and more):

  • Specify the size of the sample,
  • Continue sampling until a given width of the CI is reached,
  • Continue sampling until a given elapsed time limit is reached.

The results are printed in the console and can be exported as CSV if the option is enabled (EXPORT_CSV).

About

Computing integral of a function over an interval using Monte Carlo methods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages