permute

fun permute(x: DoubleArray, streamNum: Int)

Randomly permutes the supplied array using the supplied stream number, the array is changed

Parameters

x

the array

streamNum

the stream number from the stream provider to use


fun permute(x: DoubleArray, stream: RNStreamIfc = defaultRNStream())

Randomly permutes the supplied array using the supplied stream number, the array is changed

Parameters

x

the array

stream

the source of randomness


fun permute(x: IntArray, streamNum: Int)
fun permute(x: BooleanArray, streamNum: Int)

Randomly permutes the supplied array using the supplied stream number, the array is changed.

Parameters

x

the array

streamNum

the stream number from the stream provider to use


fun permute(x: IntArray, rng: RNStreamIfc = defaultRNStream())
fun permute(x: BooleanArray, rng: RNStreamIfc = defaultRNStream())

Randomly permutes the supplied array using the supplied random number generator, the array is changed.

Parameters

x

the array

rng

the source of randomness


fun <T> permute(x: Array<T>, streamNum: Int)

Randomly permutes the supplied array using the supplied stream number, the array is changed

Parameters

T

the type of the array

x

the array

streamNum

the stream number from the stream provider to use


fun <T> permute(x: Array<T>, rng: RNStreamIfc = defaultRNStream())

Randomly permutes the supplied array using the supplied random number generator, the array is changed

Parameters

T

the type of the array

x

the array

rng

the source of randomness


fun <T> permute(x: MutableList<T>, streamNum: Int)

Randomly permutes the supplied List using the supplied stream number, the list is changed

Parameters

T

the type of the list

x

the list

streamNum

the stream number from the stream provider to use


fun <T> permute(x: MutableList<T>, stream: RNStreamIfc = defaultRNStream())

Randomly permutes the supplied List using the supplied random number generator, the list is changed

Parameters

T

the type of the list

x

the list

stream

the source of randomness