utils.integrands.abstract module¶
Abstract classes for integrands
- class Integrand(*args, **kwargs)[source]¶
 Bases:
better_abc.ABCAbstract class to define integrands for testing the integration library
- class KnownIntegrand(*args, **kwargs)[source]¶
 Bases:
utils.integrands.abstract.Integrand,better_abc.ABCAbstract class for integrands with a known integral value
- check(estimated_integral, tolerance=0.001, method='relative')[source]¶
 Check the value of an estimation of the integral value
- Parameters
 estimated_integral (float) –
tolerance (float) –
method ({"relative", "absolute"}) –
- Returns
 - Return type
 bool
- compare_absolute(estimated_integral)[source]¶
 Compute the absolute difference between an integral and the true value
- class RegulatedIntegrand(*args, **kwargs)[source]¶
 Bases:
utils.integrands.abstract.IntegrandIntegrand deriving from another one and adding a small constant regulating factor
This is a Mixin class. Have a look at the following references: [1] [2]
- class RegulatedKnownIntegrand(*args, **kwargs)[source]¶
 Bases:
utils.integrands.abstract.RegulatedIntegrand,utils.integrands.abstract.KnownIntegrandIntegrand deriving from another known one and adding a small constant regulating factor