bmdistribution
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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. |
|