Liking cljdoc? Tell your friends :D

emmy.numerical.quadrature.adaptive


*adaptive-maxterms*clj/s

source

*neighborhood-width*clj/s

source

adaptiveclj/s

(adaptive integrator)
(adaptive open-integrator closed-integrator)

Accepts one or two 'integrators', i.e., functions of:

  • f: some integrand
  • a and b: the lower and upper endpoints of integration
  • opts, a dictionary of configuration options

And returns a new integrator that adaptively subdivides the region $a, b$ into intervals if integration fails to converge. If two integrators are supplied, the first is applied to any interval that's not explicitly closed on both ends, and the second integrator is applied to explicitly closed intervals. This behavior depends on the interval set in the supplied opts dictionary.

All opts will be passed through to the supplied integrate functions.

Optional arguments relevant to adaptive:

:maxterms: defaults to *adaptive-maxterms*. This is passed to the underlying integrators, and determines how long each interval attempts to converge before a subdivision.

:adaptive-neighborhood-width: When dividing an interval, the split point will be within this factor of the midpoint. Set :adaptive-neighborhood-width to 0 for deterministic splitting.

Accepts one or two 'integrators', i.e., functions of:

- `f`: some integrand
- `a` and `b`: the lower and upper endpoints of integration
- `opts`, a dictionary of configuration options

And returns a new integrator that adaptively subdivides the region $a, b$ into
intervals if integration fails to converge. If two integrators are supplied,
the first is applied to any interval that's not explicitly closed on both
ends, and the second integrator is applied to explicitly closed intervals.
This behavior depends on the interval set in the supplied `opts` dictionary.

All `opts` will be passed through to the supplied `integrate` functions.

### Optional arguments relevant to `adaptive`:

`:maxterms`: defaults to `*adaptive-maxterms*`. This is passed to the
underlying integrators, and determines how long each interval attempts to
converge before a subdivision.

`:adaptive-neighborhood-width`: When dividing an interval, the split point
will be within this factor of the midpoint. Set `:adaptive-neighborhood-width`
to 0 for deterministic splitting.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close