Command:
addFacBeta ( |
|
What:
Adds a Beta distributed factor 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! |
alfa
[double
precision #] |
alfa
parameter of the distribution |
beta [double precision #] |
beta parameter of the distribution |
left [double precision #] |
left bound of the distribution |
right [double precision #] |
right bound of the distribution |
note [char*] |
the factor note, optional in Matlab |
Return:
error_code [int]: 1 if the operation has occurred without errors, 0 if an error has occurred
Examples:
addFacBeta('fac1', 2, 5, 0.001, 0.999, 'notefac1')
this command adds a a factor called fac1 with a beta distribution which alpha and beta values equal 2 and 5 and the distribution is truncated outside the range 0.001-0.999
- A Matlab example script using this command set_model_inputs.m
About the
distribution:
The density function of
the Beta distribution has the following expression:
with α>0 ,
β>0 and a<b
mean value: standard deviation:
mean value: standard deviation: