The Factors

A Factor represents a set of values that a Prototype can take on a definition space (a range, a distribution, any kind of list) where the Prototype can take its values. It is used to compose Samplings.

The implemented Factors in OpenMOLE are :

The range

It is defined with 2 bounds and 1 step. The Prototype takes its values from the lowest bounds to the highest one according to the step.

Example : A Prototype defined on [1;5] with a step of 1 will produce the following values : 1,2,3,4 and 5

The uniform distribution

It is defined with a size, which represents the size of the Sample. The values are taken from a uniform distributon. It is often used to feed a random generator.

Example : 5 replications uniformely distributed : 233595241, 34944369, 1267839508, -1154274230, -1627112709

 

The File list

It is defined with a list of files, ie by a directory (containing the files) and an optional Regular Expression on it. It is used to loop over the files contained in a directory. It works only with File Prototypes.

Example : Take all the .png files of a given directory.