| 
    Chebyshev
    
   Unit testing for scientific software 
   | 
 
Precision estimators. More...
Functions | |
| template<typename FloatType = real_t> | |
| auto | quadrature1D () | 
| Use Simpson's quadrature scheme to approximate error integrals for univariate real functions (endofunctions on real number types).   | |
| template<typename IntType = int, typename ReturnType = IntType> | |
| auto | discrete1D () | 
| Use a discrete estimator over a lattice of points, here implemented in one dimension, to compute error sums over a discrete domain.   | |
| template<typename FloatType = real_t> | |
| auto | montecarlo1D (std::shared_ptr< random::random_context > rnd_ctx) | 
| Use crude Monte Carlo integration to approximate error integrals for univariate real functions.   | |
| template<typename FloatType = real_t, typename Vector = std::vector<FloatType>> | |
| auto | montecarlo (std::shared_ptr< random::random_context > rnd_ctx, unsigned int dimensions) | 
| Use crude Monte Carlo integration to approximate error integrals for multivariate real functions.   | |
Precision estimators.
      
  | 
  inline | 
Use a discrete estimator over a lattice of points, here implemented in one dimension, to compute error sums over a discrete domain.
The function is evaluated at the discrete integer values inside the prec::interval domain and the errors are summed and averaged, returning a prec::estimate_result.
ReturnType must be a type that has operator-() and is castable to long double.
      
  | 
  inline | 
Use crude Monte Carlo integration to approximate error integrals for multivariate real functions.
| rnd_ctx | A shared pointer to the random context to use for random number generation. | 
| dimensions | The dimension of the space of inputs | 
Since multiple concurrent test cases may use the same estimator, the creation of multiple random sources is handled by the random context itself.
      
  | 
  inline | 
Use crude Monte Carlo integration to approximate error integrals for univariate real functions.
A uniform random sampler is used to sample points over the one-dimensional domain