void LatinHyperCubeDesign(TMtx *X, const int n, const int p, const TMtxFloatPrecision fp, const bool Smooth = true, const TLHCImprove IterCriteria = TLHCImprove::lhcImproveMinDist, const int MaxIter = 4);
Latin Hyper-Cube design.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtx * | Stores experimental design values (rows representing values, columns variables). |
| 2 | n | const int | Defines the number of values for specific variable. |
| 3 | p | const int | Defines the number of variables. |
| 4 | fp | const TMtxFloatPrecision | Floating point precision to be used for the design. |
| 5 | Smooth = true | const bool | |
| 6 | IterCriteria = TLHCImprove::lhcImproveMinDist | const TLHCImprove | The criteria for design improvement. |
| 7 | MaxIter = 4 | const int | Maximum number of iterations used for improving the design. |
Remarks:
Generates n x p samples for Latin Hypercube experimental design.
Examples
#include "Math387.h"
#include "MtxExpr.h"
#include "Statistics.h"
#include "Units.Statistics.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Stats;
using namespace Dew::Stats::Units::Statistics;
void Example()
{
Matrix e(0,0);
LatinHyperCubeDesign(e,50,3,TMtxFloatPrecision::mvDouble,true,TLHCImprove::lhcImproveMinDist, 4);
}
Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler