Liking cljdoc? Tell your friends :D

fastmath.calculus.common

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.
raw docstring

drop-nil-optionsclj

(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 `{}`.
raw docstring

estimates-sumclj

(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]`).
raw docstring

invalid-option!clj

(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.
raw docstring

max-error-queueclj

(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.
raw docstring

normalize-boundsclj

(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.
raw docstring

normalize-bounds-multiclj

(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.
raw docstring

orientclj

(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`.
raw docstring

subst-1dclj

(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
raw docstring

subst-1d-inverseclj

(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.
raw docstring

subst-multiclj

(subst-multi f lower upper)

Substitute integrant and bounds for improper integrals, multivariate version

Substitute integrant and bounds for improper integrals, multivariate version
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close