Command:

createSample (  
double* sample
)

What:

Creates the sample for the Monte Carlo analysis. In order to do this a complete factor configuration and a sampling method must be set.

Parameters:

sample
[array of double]
Preallocated matrix of dimension # of runs x # of input variables where the sample will be stored. This allocation is not necessary in Matlab 

Return:

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

Warnings:

If the user do not allocates the correct size of memory an error may occur

Examples:


sample=createSample

this command in Matlab returns in the variable sample an NxM matrix containing the generated sample, where N is the number of runs and M the number of input variables.


- A Matlab example script using this command manage_samples.m, see also FAST_classic.m

All Sample Commands: