rLatinHyperCube

open fun rLatinHyperCube(sampleSize: Int, dimension: Int): Array<DoubleArray>(source)

Randomly generates sampleSize points from a unit Latin hyper-cube for the specified dimension using the supplied stream. A Latin hypercube sample generates n points in [0,1)^d, placing exactly one point in [j/n, (j+1)/n) for j = 0,1,2, ..,n-1.

Return

an array of DoubleArray. The rows represent the samples each of size (dimension)

Parameters

sampleSize

the number of points to generate.

dimension

the size (dimension) of the hyper-cube.


open fun rLatinHyperCube(sampleSize: Int, intervals: List<Interval>): Array<DoubleArray>(source)

Randomly generates sampleSize points from a unit Latin hyper-cube for the specified intervals using the supplied stream. A Latin hypercube sample generates n points in hyper-cube defined by the intervals.

Return

an array of DoubleArray. The rows represent the samples each of size (dimension)

Parameters

sampleSize

the number of points to generate.

intervals

the intervals that will be divided into points. The list must not be empty and each interval must be finite with a width greater than 0.0