File Exchange

image thumbnail

2D infinite Gaussian mixture model

version (4.45 KB) by Mark Bangert
Implementation of Rasmussen's infinite Gaussian Mixture model for two dimensional data sets

1 Download

Updated 07 Feb 2012

View License

This is a little script which was designed for educational purposes. It runs out of the box and generates a random data set of 2D Gaussian mixtures and visualizes the inference process with an infinite Gaussian mixture model.


* Carl Edward Rasmussen: The infinite Gaussian mixture model ->

Cite As

Mark Bangert (2021). 2D infinite Gaussian mixture model (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


I fixed that issue by setting negative values as 0: gammaln(max(x,0))

I hope it doesn't break it


something wrong with the gammaln function, the variable should be positive. a nice matlab script.

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!