Latin Hyper-Cube design.
procedure LatinHyperCubeDesign(const X: TMtx; const n: Integer; const p: Integer; const fp: TMtxFloatPrecision; const smooth: boolean = true; const IterCriteria: TLHCImprove = lhcImproveMinDist; const MaxIter: Integer = 4);
Parameters |
Description |
X |
Stores experimental design values (rows representing values, columns variables). |
n |
Defines the number of values for specific variable. |
p |
Defines the number of variables. |
fp |
Floating point precision to be used for the design. |
smooth |
If 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, ... . |
IterCriteria |
The criteria for design improvement. |
MaxIter |
Maximum number of iterations used for improving the design. |
Generates n x p samples for Latin Hypercube experimental design.
Use MtxExpr, Statistics; procedure Example; var e: Matrix; begin // 50 values for each of 3 variables LatinHyperCubeDesign(e,50,3); end;
#include "MtxExpr.hpp" #include "Statistics.hpp" void __fastcall Example() { sMatrix e; LatinHyperCubeDesign(e,50,3); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|