Sector decomposition
Public Member Functions | Protected Attributes | List of all members
monte_carlo_result Class Reference

#include <monte_carlo.h>

Public Member Functions

 monte_carlo_result (void)
 
 monte_carlo_result (double mean, double error, double chi_squared)
 
double get_mean (void) const
 
double get_error (void) const
 
double get_chi_squared (void) const
 

Protected Attributes

double mean
 Monte-Carlo estimate for the integral.
 
double error
 Monte-Carlo error.
 
double chi_squared
 chi-squared for the Monte-Carlo integration
 

Detailed Description

This class defines the return type of the result of a Monte Carlo integration.

This class holds the Monte Carlo estimate for the integral (mean), the Monte Carlo integration error (error) and the $ \chi^2 $ (chi_squared).

Constructor & Destructor Documentation

◆ monte_carlo_result() [1/2]

monte_carlo_result ( void  )

Default constructor

◆ monte_carlo_result() [2/2]

monte_carlo_result ( double  mmean,
double  eerror,
double  cchi_squared 
)

Standard constructor

mean is initialised with mmean, error is initialised with eerror, chi_squared is initialised with cchi_squared.

Member Function Documentation

◆ get_chi_squared()

double get_chi_squared ( void  ) const

Returns $ \chi^2$.

◆ get_error()

double get_error ( void  ) const

Returns the error estimate.

◆ get_mean()

double get_mean ( void  ) const

Returns the mean value.


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