Options
All
  • Public
  • Public/Protected
  • All
Menu

Isotropic random walk

A variate is used to draw from a random element of a probability distribution. The draw corresponds to the radius of a d-dimensional sphere. The position on the surface of the d-dimensional sphere is randomly chosen with all points on the surface having the same probability, i.e. all directions are isotropic and the step is randomly drawn from the given variate.

Hierarchy

  • IsotropicRandomWalk

Index

Constructors

constructor

  • Parameters

    • eng: any
    • dist: any
    • dim: Size
    • Default value weights: Real[] = []
    • Default value seed: Size = 0

    Returns IsotropicRandomWalk

Properties

Protected _dim

_dim: Size

Protected _rng

Protected _variate

Protected _weights

_weights: Real[]

Methods

nextReal

  • nextReal(input: Real[], first?: Size): void
  • Parameters

    • input: Real[]
    • Default value first: Size = 0

    Returns void

setDimension1

  • setDimension1(dim: Size): void
  • Parameters

    Returns void

setDimension2

  • setDimension2(dim: Size, weights: Real[]): void
  • Parameters

    Returns void

setDimension3

  • setDimension3(dim: Size, lowerBound: Real[], upperBound: Real[]): void
  • Parameters

    Returns void