Command:

addFacExp (  
char* name,
double lambda,
double b,
double trunc,
char* note
)

What:

Adds a new factor with an exponential 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!
lambda
[double precision #]
lambda parameter of the distribution
b
[double precision #]
b parameter of the distribution
trunc
[double precision #]
right truncation value for the 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:

addFacExp('fac1', 2, 5, 0.912, 'fac1note')

this command creates a new factor called fac1 with an exponential distribution which parameters lambda and b values respectively are 2 and 5 while the distribution is truncated after 0.912 

About the distribution:

The density function of the Exponential distribution has the following expression:

exponential

with λ>0 , b>0 and x≥b


mean value:                                        standard deviation:

exponential                                                  exponential

All Factor Commands: