bmdistribution

Multivariate binary (Bernoulli) mixture model distribution and fitting
154 Downloads
Updated 17 Nov 2015

An implementation of the multivariate Binary (Bernoulli) mixture model for Matlab. Can be used to model distribution of pixels in distributions of binary images for example. This library follows the matlab distribution class as closely as possible, and more precisely the Gaussian mixture model one.
Example:
"""
Xlearn = [bsxfun(@lt, rand(40000, 9), [.1 .2 .3 .4 .5 .6 .7 .8 .9]);
bsxfun(@lt, rand(10000, 9), [.9 .8 .7 .6 .5 .4 .3 .2 .1])];
bmm = fitbmdist(Xlearn, 2, 'Options', struct('MaxIter', 1000, 'TolFun', 1e-4))
bmm.ComponentProportion
bmm.Means
Xtest = [bsxfun(@lt, rand(1000, 9), [.1 .2 .3 .4 .5 .6 .7 .8 .9]);
bsxfun(@lt, rand(1000, 9), [.9 .8 .7 .6 .5 .4 .3 .2 .1])];
clus = bmm.cluster(Xtest);
% label numbers might be inverted, check numbers and build confusion matrix.
"""

Cite As

Nicolas Granger (2024). bmdistribution (https://github.com/nlgranger/bmdistribution), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

(15 Nov 2015) Fixed bug preventing fitting method to complete.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.