setParameters

fun setParameters(min: Double, mode: Double, max: Double)

Sets the minimum, most likely and maximum value of the triangular distribution to the private data members myMin, myMode and myMax resp throws IllegalArgumentException when the min >mode, min >= max, mode > max

Parameters

min

The minimum value of the distribution

mode

The mode of the distribution

max

The maximum value of the distribution