The LHS Sampling

Basics

This Sampling implements the Latin Hypercube Sampling. It requires a set of Bounded Domains as well as the required number of Samples.

Creation

To create a LHS Sampling :

> Right click on the Sampling Composition area, select Add Sampling and then LHS in the Sampling panel that shows up.
> A configuration panel appears. Select the number of required Samples for the LHSlhsSettings
> Click on create, and this Sampling is now ready to be embedd in an Exploration Task

Example

Let’s create a LHS on 2 Bounded Domains

> create first two Prototypes of type Double named p1 and p2.
> then create two Bounded Domains respectively varying from 0 to 100 and from 0.1 to 0.9 (NB: a Bounded Domain is a Range Domain without step parameter).boundedRangeExample
> add a LHS Sampling on the Sampling Composition Area
> connect both Domains to the LHS and the LHS to the final stone (Shift + drag from the source to the target)
> Associate the Prototype p1 to the first Domain and the Prototype p2 to the second one (NB: click on the ? on the connector)lhs-example
> create an Exploration Task and select the previously built SamplingexplorationTaskForLHS
> add the Exploration Task on a Scene
> add a Display Hook on itaddHookExample
> the Mole (of only one Task !) is now ready to be run : press the build Button
> the execution shows up in a new tab. Set the Hook to see the Prototypes p1 and p2.
hooksExample
> Switch to the Execution progress view and press the play button
startButton
> the Mole is run. A possible output (the LHS is a stocahstic algorithm) is two vectors of 3 values (corresponding to the LHS settings):
{p1=[92.00069655252683, 66.21142664023047, 22.738702211645457], p2=[0.2230782522446484, 0.22099460686703065, 0.7911381417989419]}