Learn R Programming

spartan (version 3.0.2)

scale_lhc_sample: Scale the LHC design to be the range explored for each parameter

Description

As the lhc design is scaled between 0 and 1, this method rescales the sample, putting the sampled value within the range specified for that parameter

Usage

scale_lhc_sample(PARAMETERS, PMIN, PMAX, PINC, NUMSAMPLES, design)

Arguments

PARAMETERS

Array containing the names of the parameters of which parameter samples will be generated

PMIN

Array containing the minimum value that should be used for each parameter. Sets a lower bound on sampling space

PMAX

Array containing the maximum value that should be used for each parameter. Sets an upper bound on sampling space

PINC

Array containing the increment value that should be applied for each parameter. For example, a parameter could have a minimum value of 10, and maximum value of 100, and be incremented by 10.

NUMSAMPLES

The number of parameter subsets to generate

design

The generated lhc design, all values between 0 and 1

Value

Rescaled design in the required ranges