Skip to content

Reference

Note on reproducibility

Functions marked with \(^\star\) are stochastic. Thus, in order to obtain the same result on separate invocations of these functions, it is first necessary to define a seed for the pseudo-random number generator (PRNG). Since this is accomplished in slightly different ways in MATLAB and Octave, MOCluGen provides the cluseed helper function for setting the PRNG seed regardless of the underlying platform. For example:

cluseed(123);
v = rand_unit_vector(3); % Given the same platform, will always return the same vector

Further, the main clugen function also provides a seed parameter, which is passed directly to cluseed.

Main functions

Core functions

Algorithm module functions

Helper functions