Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DensityBuilder

The density transform generates a new data stream of uniformly-spaced samples drawn from a one-dimensional probability density function (pdf) or cumulative distribution function (cdf). This transform is useful for representing probability distributions and generating continuous distributions from discrete samples using kernel density estimation.

Hierarchy

Implemented by

Index

Methods

as

build

distribution

extent

  • A [min, max] domain from which to sample the distribution. This argument is required in most cases, but can be omitted in the case of distributions (namely, kde) that can deduce their own extent.

    Parameters

    • start: number
    • end: number

    Returns DensityBuilder

method

steps

  • The number of uniformly spaced steps to take along the extent domain (default 100). A total of steps + 1 uniformly-spaced samples are drawn from the distribution.

    Parameters

    • value: number

    Returns DensityBuilder