Multivariate binary (Bernoulli) mixture model distribution and fitting
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). bmdistribution (https://github.com/nlgranger/bmdistribution), GitHub. Retrieved .
General Information
- Version 1.0.0.0 (5.15 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | (15 Nov 2015) Fixed bug preventing fitting method to complete. |
