4.0

4.0 | 1 rating Rate this file 16 Downloads (last 30 days) File Size: 6.04 KB File ID: #17489
image thumbnail

Fast ND multidimensional gaussian mixture random generator

by Sebastien PARIS

 

12 Nov 2007 (Updated 12 Oct 2011)

A fast generator of gaussian mixture samples

| Watch this File

File Information
Description

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)

Acknowledgements
This submission has inspired the following:
EM_MVGM
MATLAB release MATLAB 7.5 (R2007b)
Other requirements A C compiler.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
09 Apr 2008 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.

11 Apr 2008 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

Please login to add a comment or rating.
Updates
15 Nov 2007

-Improve/correct help

10 Sep 2008

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

10 Sep 2008

-Fix Z = sample_mvgm(N , mu) call

07 Jul 2010

-Compatible with GCC compiler

19 Oct 2010

-Fixed bug with Linux64 & GCC

12 Oct 2011

-Minor update for Linux systems

Tag Activity for this File
Tag Applied By Date/Time
statistics Sebastien PARIS 22 Oct 2008 09:34:35
probability Sebastien PARIS 22 Oct 2008 09:34:35
mixture Sebastien PARIS 22 Oct 2008 09:34:35
nd slices Sebastien PARIS 22 Oct 2008 09:34:35
multivariate gaussian process Sebastien PARIS 22 Oct 2008 09:34:35
multivariate gaussian mixture Sebastien PARIS 07 Jul 2010 09:54:37

Contact us at files@mathworks.com