Command:

getFactorType (  
char* name,
int maxChar,
char* factorType
)

What:

Retrieves the type of the distribution of a given factor

Parameters:

name
[char*]
the factor name in which distribution type we are interested. It must begin with a letter and can contain only letters and numbers, this parameter cannot be null!
maxChar
[integer]
maximum number of characters that should be returned by the function
factorType
[char*]
output parameter that will contain the type of the distribution of the factor of interest

Return:

error_code [int]: 1 if the operation has occurred without errors, 0 if an error has occurred

Warnings:

factorType will contain the type of distribution or it will remain empty if an error occurs
In Matlab factorType has not to be set, the result of the command is copied in the variable ans

Examples:


factor_type=getFactorType('fac1', 100)

this Matlab command returns in the variable factor_type the type of distribution associated with the factor fac1, 100 is a maximum length given to the response.

- A Matlab example script using this command set_model_inputs.m

All Factor Commands: