sample

open fun sample(): DoubleArray

Return

generates an array of random values of size dimension


abstract fun sample(array: DoubleArray)

Fills the supplied array with a sample of values. This method avoids the creation of a new array. The size of the array must match dimension

Parameters

array

the array to fill with the sample


open fun sample(sampleSize: Int): List<DoubleArray>

Generates a list holding the randomly generated arrays of the given dimension. Thus, the elements of the list are the arrays holding the sampled values.

Return

A list holding the generated arrays. There will be sampleSize array, each of size dimension

Parameters

sampleSize

the amount to fill


open fun sample(values: Array<DoubleArray>)

Fills the supplied array of arrays with randomly generated samples

Parameters

values

the arrays to fill. Each array in the array of arrays, should have dimension elements. The number of arrays represents the required sample size