Command:
addFacLogNorm ( |
|
What:
Adds a new factor with a logNormal distribution 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:addFacLogNorm('fac1', 49, 1, 0.001, 0.999, 'fac1note')
this command creates a new
factor called fac1
with a lognormal distribution which parameters mu and sigma
respectively are 49 and 1 while the distribution is
truncated before 0.001 and after 0.999
The density function of
the LogNormal distribution has the following expression:
mean value: standard deviation: