| Home | Trees | Indices | Help |
|---|
'romberg',
return_pieces=False,
**kwargs)'cosmolopy'
Integrate a function from x to max, where x can be an array.
function: callable
x: array-like
This can be used to find the complementary cumulative distribution function (CCDF) given the probability distribution function (PDF).
Unlike integrate_piecewise, the x values don't have to be in order, though a warning will be issued if any are greater than max, if max is specified.
'romberg',
return_pieces=False,
**kwargs)
Integrate function and return the integral at a sequence of points.
Useful when you want to efficiently calculate a cumulative integral.
Also useful for piecewise-defined functions where discontinuities or critical points cause quadrature routines to complain or become inaccurate.
Integration methods available are: quad, romberg.
Integrate a function from low to high (vectorized).
Vectorized convenience function.
Integrate a function from low to high using a log transform (vectorized).
The log transform is applied to the variable over which the integration is being performed.
| Home | Trees | Indices | Help |
|---|