A fast generator of gaussian mixture samples with a general ND dimensional calling syntax.
Permit to sample from a simple multivariate process to several gaussian mixture in a easy way.
Please run mexme_sample_mvgm.m to compile on your own platform. (Be sure to mex -setup is done before)
Sebastien PARIS (2020). Fast ND multidimensional gaussian mixture random generator (https://www.mathworks.com/matlabcentral/fileexchange/17489-fast-nd-multidimensional-gaussian-mixture-random-generator), MATLAB Central File Exchange. Retrieved .
Documentation, extra examples and how to compile is documented directly the the mex-file. As it's written, to compile on others plateforms, you have to proceed as follow :
mex -DranSHR3 -output sample_mvgm.dll sample_mvgm.c
mex -DranKISS -outputsample_mvgm.dll sample_mvgm.c
When compiling on Windows, MATLAB R2006a, it fails.
Saying that randint not defined.
Adding a macro at the beginning of the source file
#define ranSHR solves the problem.
Documentation and literature reference desired.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!