UniformRV

class UniformRV @JvmOverloads constructor(val min: Double = 0.0, val max: Double = 1.0, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : ParameterizedRV(source)

Generates a continuous uniform over the range

Parameters

min

the minimum of the range must be less than the maximum

max

the maximum of the range

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider

name

an optional name

Constructors

Link copied to clipboard
constructor(interval: Interval, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)
constructor(min: Double = 0.0, max: Double = 1.0, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Properties

Link copied to clipboard
val max: Double = 1.0
Link copied to clipboard
val min: Double = 0.0
Link copied to clipboard
open override val parameters: RVParameters

Functions

Link copied to clipboard
open override fun instance(streamNum: Int, rnStreamProvider: RNStreamProviderIfc): UniformRV
Link copied to clipboard
open override fun toString(): String