Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
estimator.h File Reference

Default precision estimators. More...

#include <functional>
#include <cmath>
#include "../core/common.h"
#include "../core/random.h"
#include "./prec_structures.h"

Go to the source code of this file.

Namespaces

namespace  chebyshev
 General namespace of the framework.
 
namespace  chebyshev::prec::estimator
 Precision estimators.
 

Functions

template<typename FloatType = double>
auto chebyshev::prec::estimator::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 chebyshev::prec::estimator::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 = double>
auto chebyshev::prec::estimator::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 = double, typename Vector = std::vector<FloatType>>
auto chebyshev::prec::estimator::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.
 

Detailed Description

Default precision estimators.