Command:

addFacWeib (  
char* name,
double beta,
double n,
double b,
double trunc,
char* note
)

What:

Adds a new factor with a Weibull 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!
beta
[double precision #]
beta parameter of the distribution
n
[double precision #]
n 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:

addFacWeib('fac1', 1, 2, 3, 0.999, 'fac1note')

this command creates a new factor called fac1 with a weibull distribution which parameters beta, n and b values respectively are 1, 2  and 3 while the distribution is truncated after 0.999 

About the distribution:

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

weibull

with β>0 , n>0 and b≥0


mean value:                                        standard deviation:

weibull                                     weibull

All Factor Commands: