Command:
addFacNorm ( |
|
What:
Adds a new factor with a normal distribution (gaussian) to the configuration to be used for the sample generation
Parameters:
name [char*] |
defines
the factor's name. It must begin with a letter and can contain only
letters and numbers, this parameter cannot be null! |
mu [double precision #] |
mu parameter of the logNormal distribution |
sigma [double precision #] |
sigma parameter of the logNormal distribution |
leftTrunc [double precision #] |
left truncation value for the logNormal distribution |
rightTrunc [double precision #] |
right truncation value for the logNormal distribution |
note [char*] |
the
factor note is optional in Matlab |
Return:
error_code [int]: 1 if the operation has occurred without errors, 0 if an error has occurred
Examples:addFacNorm('fac1', 49, 1, 0.001, 0.999, 'fac1note')
this command creates a new factor called fac1 with a gaussian distribution which parameters mu and sigma respectively are 49 and 1 while the distribution is truncated before 0.001 and after 0.999
- A Matlab example script using this command: set_model_inputs.m , see also manage_samples.m
About the distribution:The density function of
the Normal distribution has the following expression:
mean value µ in the
interval
(-inf,+inf) and standard deviation σ>0;