Constant
class Constant(var value: Double = 0.0, name: String? = null) : Distribution, DiscreteDistributionIfc, GetRVariableIfc, RVParametersTypeIfc(source)
Constructs a degenerate distribution with all probability at the provided point. Once made the value of the constant cannot be changed.
Construct a constant using the supplied value
Parameters
value
the value for the constant
name
a string name/label
Functions
Link copied to clipboard
Gets the parameters
Sets the parameters
Link copied to clipboard
Link copied to clipboard
open override fun randomVariable(streamNumber: Int, streamProvider: RNStreamProviderIfc): ConstantRV
Promises to return a random variable that uses the supplied stream number using the supplied stream provider