Options
All
  • Public
  • Public/Protected
  • All
Menu

Mersenne-twister Brownian generator for market-model simulations

Incremental Brownian generator using a Mersenne-twister uniform generator and inverse-cumulative Gaussian method.

note At this time, generation of the underlying uniform sequence is eager, while its transformation into Gaussian variates is lazy. Further optimization might be possible by using the Mersenne twister directly instead of a RandomSequenceGenerator; however, it is not clear how much of a difference this would make when compared to the inverse-cumulative Gaussian calculation.

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns MTBrownianGenerator

Properties

Private _factors

_factors: Size

Private _generator

Private _inverseCumulative

_inverseCumulative: InverseCumulativeNormal = new InverseCumulativeNormal()

Private _lastStep

_lastStep: Size

Private _steps

_steps: Size

Methods

nextPath

nextStep

numberOfFactors

  • numberOfFactors(): Size

numberOfSteps

  • numberOfSteps(): Size