AR1CorrelatedRNStream

class AR1CorrelatedRNStream @JvmOverloads constructor(val lag1Corr: Double, stream: RNStreamIfc = KSLRandom.nextRNStream()) : RNStreamIfc(source)

Uses the autoregressive to anything algorithm to generate correlated uniform variates. The user supplies the correlation of the underlying AR(1) process. The resulting correlation in the u's may not necessarily meet this correlation, due to the correlation matching problem.

Constructors

Link copied to clipboard
constructor(lag1Corr: Double, stream: RNStreamIfc = KSLRandom.nextRNStream())

Properties

Link copied to clipboard
Link copied to clipboard
open override val previousU: Double

The previous U(0,1) generated (returned) by randU01()

Functions

Link copied to clipboard
open override fun randU01(): Double

Returns a pseudo-random uniformly distributed number