Shared parts of the integration engines: the max-error queue, the orientation of bounds and the substitutions which turn improper integrals into proper ones.
Shared parts of the integration engines: the max-error queue, the orientation of bounds and the substitutions which turn improper integrals into proper ones.
(drop-nil-options options)Returns the options map without the keys having a nil value, so a nil option is a missing option and takes its default. nil options give {}.
Returns the `options` map without the keys having a `nil` value, so a `nil` option is a missing option and takes its default. `nil` options give `{}`.
(estimates-sum regions)Returns the sum of values and the sum of errors of all [[Estimate]] objects in a collection as a Vec2 (it destructures like [sum-of-values sum-of-errors]).
Returns the sum of values and the sum of errors of all [[Estimate]] objects in a collection as a `Vec2` (it destructures like `[sum-of-values sum-of-errors]`).
(invalid-option! option value expected)Throws ex-info for an invalid option or argument, with {:option :value :expected} in the ex-data; expected is a text describing the valid values.
Throws `ex-info` for an invalid option or argument, with `{:option :value :expected}` in the ex-data; `expected` is a text describing the valid values.
(max-error-queue)Creates an empty java.util.PriorityQueue of [[Estimate]] objects whose head (poll) is the region with the largest error.
Regions with equal errors are all kept and a region with a NaN error comes first.
Creates an empty `java.util.PriorityQueue` of [[Estimate]] objects whose head (`poll`) is the region with the largest error. Regions with equal errors are all kept and a region with a NaN error comes first.
(normalize-bounds lower upper)Orients one-dimensional bounds. Returns [sign lower upper] with lower <= upper and sign equal to -1.0 when the bounds were reversed, 1.0 otherwise.
Throws ex-info for a NaN bound and for two equal infinite bounds.
Orients one-dimensional bounds. Returns `[sign lower upper]` with `lower <= upper` and `sign` equal to `-1.0` when the bounds were reversed, `1.0` otherwise. Throws `ex-info` for a NaN bound and for two equal infinite bounds.
(normalize-bounds-multi lower upper)Orients bounds of every dimension. Returns [sign lower upper], where lower and upper are vectors with lower[i] <= upper[i] and sign is -1.0 raised to the number of reversed dimensions.
Throws ex-info when the sequences are empty or differ in length, and as normalize-bounds does for a NaN bound or two equal infinite bounds in any dimension.
Orients bounds of every dimension. Returns `[sign lower upper]`, where `lower` and `upper` are vectors with `lower[i] <= upper[i]` and `sign` is `-1.0` raised to the number of reversed dimensions. Throws `ex-info` when the sequences are empty or differ in length, and as [[normalize-bounds]] does for a NaN bound or two equal infinite bounds in any dimension.
(orient sign result)Applies the sign of normalize-bounds to a result, which is a number or an info map with :result.
Applies the `sign` of [[normalize-bounds]] to a result, which is a number or an info map with `:result`.
(subst-1d f lower upper)Substitute integrant and bounds for improper integrals, 1-d version
Substitute integrant and bounds for improper integrals, 1-d version
(subst-1d-inverse lower upper)Returns the function mapping a point of the original interval to the variable of the substitution used by subst-1d for the same bounds.
Returns the function mapping a point of the original interval to the variable of the substitution used by [[subst-1d]] for the same bounds.
(subst-multi f lower upper)Substitute integrant and bounds for improper integrals, multivariate version
Substitute integrant and bounds for improper integrals, multivariate version
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |