Skip to content

Defined in: packages/distribution/src/custom-continuous-distribution.ts:16

A distribution with a density over an interval.

readonly quantile: (p) => number

Defined in: packages/distribution/src/custom-continuous-distribution.ts:21

Probability

number

With INVALID_PROBABILITY, INVALID_CALLBACK_VALUE, or QUANTILE_NOT_BRACKETED.

ContinuousDistribution.quantile


readonly kind: "custom-continuous"

Defined in: packages/distribution/src/distribution.ts:13

The serializable name of the family.

ContinuousDistribution.kind


readonly parameters: Readonly<P>

Defined in: packages/distribution/src/distribution.ts:15

The captured input parameters.

ContinuousDistribution.parameters


readonly support: DistributionSupport

Defined in: packages/distribution/src/distribution.ts:17

The closed bounds of the represented outcomes.

ContinuousDistribution.support


readonly cumulativeProbability: (x) => Probability

Defined in: packages/distribution/src/distribution.ts:22

The probability of an outcome at or below x.

number

Probability

With INVALID_ARGUMENT when x is NaN or not a number.

ContinuousDistribution.cumulativeProbability


readonly survivalProbability: (x) => Probability

Defined in: packages/distribution/src/distribution.ts:27

The probability of an outcome strictly above x.

number

Probability

With INVALID_ARGUMENT when x is NaN or not a number.

ContinuousDistribution.survivalProbability


readonly draw: (random) => number

Defined in: packages/distribution/src/distribution.ts:39

Draw one value from the supplied source. There is no state between draws besides the caller’s source. The same seed replays on the same engine build and platform. One differing comparison or rounding on another engine can change that draw and every later one, including how many words a rejection sampler consumes.

RandomSource

number

With INVALID_SOURCE_VALUE for an invalid value from the source.

ContinuousDistribution.draw


readonly density: (x) => number

Defined in: packages/distribution/src/distribution.ts:68

The density at x, with zero outside the support and the interior limit at a finite endpoint.

number

number

With INVALID_ARGUMENT when x is NaN or not a number.

ContinuousDistribution.density


readonly logDensity: (x) => number

Defined in: packages/distribution/src/distribution.ts:73

The natural logarithm of the density at x, with -Infinity for zero density.

number

number

With INVALID_ARGUMENT when x is NaN or not a number.

ContinuousDistribution.logDensity