View License

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

» Watch video

Highlights from
Fast ND multidimensional gaussian mixture random generator

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

Fast ND multidimensional gaussian mixture random generator



12 Nov 2007 (Updated )

A fast generator of gaussian mixture samples

| Watch this File

File Information

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)


This file inspired Em Mvgm.

MATLAB release MATLAB 7.5 (R2007b)
Other requirements A C compiler.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
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


mex -DranKISS -outputsample_mvgm.dll sample_mvgm.c

Comment only
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
#define ranSHR solves the problem.

Documentation and literature reference desired.

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)

07 Jul 2010 1.1

-Compatible with GCC compiler

19 Oct 2010 1.2

-Fixed bug with Linux64 & GCC

12 Oct 2011 1.3

-Minor update for Linux systems

Contact us