Statistics.LatinHyperCubeDesign Method

procedure LatinHyperCubeDesign(const X: TMtx; const n: Integer; const p: Integer; const fp: TMtxFloatPrecision; const smooth: Boolean; const IterCriteria: TLHCImprove; const MaxIter: Integer);

Latin Hyper-Cube design.

#NameDescription
1XStores experimental design values (rows representing values, columns variables).
2nDefines the number of values for specific variable.
3pDefines the number of variables.
4smoothIf true, generate random values for n random (permuted) values are distributed per one point in intervals (0,1/n),(1/n,2/n)... ((n-1)/n,n). If false, produce the points in the middle of define intervals i.e. 0.5/n, 1.5/n, ... .
5IterCriteriaThe criteria for design improvement.
6MaxIterMaximum number of iterations used for improving the design.
7fpFloating point precision to be used for the design.

Result: stored in self (calling object)

Remarks:

Generates n x p samples for Latin Hypercube experimental design.

Examples
Use MtxExpr, Statistics;
procedure Example;
var e: Matrix;
begin
    // 50 values for each of 3 variables
    LatinHyperCubeDesign(e,50,3);
end;