SG++-Doxygen-Documentation
sgpp::combigrid::MCIntegrator Class Reference

Monte-Carlo-Quadrature for testing issues. More...

#include <MCIntegrator.hpp>

Public Member Functions

double average (std::vector< std::pair< double, double >> domain, size_t num_samples)
 
double integrate (std::vector< std::pair< double, double >> domain, size_t num_samples)
 
 MCIntegrator (std::function< double(base::DataVector const &)> func)
 
 MCIntegrator (std::function< base::DataVector(std::vector< base::DataVector > const &)> func)
 

Detailed Description

Monte-Carlo-Quadrature for testing issues.

Constructor & Destructor Documentation

◆ MCIntegrator() [1/2]

sgpp::combigrid::MCIntegrator::MCIntegrator ( std::function< double(base::DataVector const &)>  func)
explicit

◆ MCIntegrator() [2/2]

sgpp::combigrid::MCIntegrator::MCIntegrator ( std::function< base::DataVector(std::vector< base::DataVector > const &)>  func)
explicit

Member Function Documentation

◆ average()

double sgpp::combigrid::MCIntegrator::average ( std::vector< std::pair< double, double >>  domain,
size_t  num_samples 
)

◆ integrate()

double sgpp::combigrid::MCIntegrator::integrate ( std::vector< std::pair< double, double >>  domain,
size_t  num_samples 
)

References average().


The documentation for this class was generated from the following files: