utils.integrands.pretty module¶
Pretty, low dimensional examples where we clearly beat VEGAS
- class CircleLineIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.Integrand
Classic failure mode of VEGAS: function with an enhancement along a circle and a line on the diagonal, preventing a straightforward analytic change of variable
This is a generalization with a n-sphere and maximal diagonal pattern
- class SineIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.Integrand
Sinusoidal function with a wave vector along the maximal hyperdiagonal
- Parameters
f (float) – period of the sinus
offset (float) –
- class SineLineIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.Integrand
2D function enhanced on the graph y = sin(2*pi*f*x)
- Parameters
sig (float) – thickness of the line
f (float) – period of the sinus