TriangularRV

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

Triangular(min, mode, max) random variable

Parameters

min

the min, must be less than or equal to mode

mode

the mode, must be less than or equal to max

max

the max

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(min: Double, mode: Double, max: Double, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Properties

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

Functions

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