Theoretica
A C++ numerical and automatic mathematical library
chebyshev::prec::fail Namespace Reference

Fail functions for use in prec::estimate. More...

Functions

auto passthrough ()
 Passthrough fail function which marks all tests as passed (not failed).
 
auto fail_on_max_err ()
 Default fail function which marks the test as failed if the maximum error on the domain is bigger than the tolerance.
 
auto fail_on_mean_err ()
 Marks the test as failed if the mean error on the domain is bigger than the tolerance or the error is NaN.
 
auto fail_on_rms_err ()
 Marks the test as failed if the RMS error on the domain is bigger than the tolerance or the error is NaN.
 
auto fail_on_rel_err ()
 Marks the test as failed if the relative error on the domain is bigger than the tolerance or the error is NaN.
 

Detailed Description

Fail functions for use in prec::estimate.

Fail functions are used to evaluate whether a certain test case has failed error estimation. If the fail function returns true, the test has failed. For example, a test case may fail if the maximum error is over a certain threshold.