File Exchange

image thumbnail

Fast ND multidimensional gaussian mixture random generator

version 1.3 (6.04 KB) by

A fast generator of gaussian mixture samples

0 Downloads

Updated

View License

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)

Comments and Ratings (2)

Sebastien PARIS

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

or

mex -DranKISS -outputsample_mvgm.dll sample_mvgm.c

WEI LIU

When compiling on Windows, MATLAB R2006a, it fails.

Saying that randint not defined.

Adding a macro at the beginning of the source file
#define ranKISS
or
#define ranSHR solves the problem.

Documentation and literature reference desired.

Updates

1.3

-Minor update for Linux systems

1.2

-Fixed bug with Linux64 & GCC

1.1

-Compatible with GCC compiler

-A more general syntax, Z = sample_mvgn return a univariate gaussian sample from N(0,1)

-Improve/correct help

MATLAB Release
MATLAB 7.5 (R2007b)
Acknowledgements

Inspired: EM_MVGM

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video