--- myst: substitutions: macro: python: 1-5,16-26,29-36,39-48 cpp: 4-6,12-18,21-27,30-35 bloc1: python: 20-22 cpp: 13-15 bloc2: python: 26,29 cpp: 18,21 --- # Macro "**samplingLHS.{{extension}}**" ## Objective Generate a {{doe}} of 5000 patterns, using the LHS method, with three random attributes: 1. Attribute *x1* obeys an uniform law on interval [3, 4]; 2. Attribute *x2* obeys a normal law with mean value equal to 0.5 and standard deviation set to 1.5; 3. Attribute *x3* follows a triangular law on interval [1, 5] with mode 4. ## Macro {{uranie}} {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/sampler/use_cases/" + language + "/samplingLHS." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + macro[language] + "\n" + "```" }} Laws are set for each attribute and linked to a {{tds}}: {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/sampler/use_cases/" + language + "/samplingLHS." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc1[language] + "\n" + "```" }} The sampling is generated with the LHS method! {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/sampler/use_cases/" + language + "/samplingLHS." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc2[language] + "\n" + "```" }} ## Graph {{ "```{figure} " + parent_dir + "/roottest/build/uranie/doc/sampler/use_cases/" + language + "/lhs/samplingLHS.png\n" + ":align: center\n" + ":name: use_cases_samplingLHS\n" + figure_scale + "\n" + "\n" + "Graph of the macro **\"samplingLHS." + extension + "\"**" + "\n" + "```" }}