Command:
addFacTriang ( |
|
What:
Adds a Triangular 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 |
gamma [double precision #] |
gamma parameter 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:
addFacTriang('fac1', 1, 4, 7, 'notefac1')
this command adds a a factor called fac1 with a triangular distribution which alpha, beta and gamma values equal 1, 4 and 7
About the
distribution:
The density function of
the Triangular distribution has the following expression:
with α≤γ<β or α<γ≤β
height of β point (h):

mean value:
height of β point (h):
mean value:
standard deviation: