LinearVariable
data class LinearVariable(val default: Double, val min: Double, val max: Double, val step: Double) : AbstractPrintableVariable<Double>
A variable that spans linearly between a minimum and a maximum value.
This is represented as a sequence of values starting at min, incrementing by step, and not exceeding max. The default parameter is the default value for the variable (it is not constrained to be exactly one of the generated steps).
Note: kept as a data class for convenient structural equality and debugging; the implementation preserves the original behavior of the prior class.
Functions
Link copied to clipboard
Link copied to clipboard
Returns a random element of the Iterable using the provided randomGenerator.
Link copied to clipboard
Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.