4.0

4.0 | 1 rating Rate this file 35 downloads (last 30 days) File Size: 62.08 KB File ID: #15527

mmvn_toolkit

by Michael Boedigheimer

 

08 Jul 2007 (Updated 13 Jul 2007)

No BSD License  

complete toolkit for generating, training, testing and viewing multidimensional gaussian mixtures

Download Now | Watch this File

File Information
Description

A toolkit for Gaussian mixtures.
flexible tools for:
Generating univariate, multivariate, or mixtures of gaussians
Interactive viewing tools allows viewing of multidimensional data and models. Initialize models, add and remove dimensions or clusters and inspect the fit in real-time.
Also includes tools to subset the data using model-based (pseudo-)metrics.

simple example of clustering
% generate 4 clusters in 2 dimensions
  [X idx theta] = mmvn_gen( 1000, [0 5; 5 0; 5 5; 0 0] );

% fit data
  Opt = mmvn_fit( X, 4, theta );

% plot data
  scatter( X(:,1), X(:,2), [], idx, 'filled');
  hold on;
% represent fits using ellipses
  ellipse( Opt.M, Opt.V);
 

See mmvn_tutorial (included) for a walk-through of major functionality

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
PSNR

MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
Other Files
mmvn_toolkit/@MMGate/display.m,
mmvn_toolkit/@MMGate/gate.m,
mmvn_toolkit/@MMGate/getClusterIndex.m,
mmvn_toolkit/@MMGate/groupi.m,
mmvn_toolkit/@MMGate/MMGate.m,
mmvn_toolkit/@MMGate/private/checkCrit.m,
mmvn_toolkit/@MMGate/private/checkGroup.m,
mmvn_toolkit/@MMGate/private/checkMethod.m,
mmvn_toolkit/@MMGate/private/checkType.m,
mmvn_toolkit/@MMGate/subsasgn.m,
mmvn_toolkit/@MMGate/subsref.m,
mmvn_toolkit/@MModel/addCluster.m,
mmvn_toolkit/@MModel/checkFit.m,
mmvn_toolkit/@MModel/deleteCluster.m,
mmvn_toolkit/@MModel/display.m,
mmvn_toolkit/@MModel/em.m,
mmvn_toolkit/@MModel/gate.m,
mmvn_toolkit/@MModel/getTheta.m,
mmvn_toolkit/@MModel/init.m,
mmvn_toolkit/@MModel/isOptimized.m,
mmvn_toolkit/@MModel/kmeans_init.m,
mmvn_toolkit/@MModel/mah.m,
mmvn_toolkit/@MModel/MModel.m,
mmvn_toolkit/@MModel/nearest.m,
mmvn_toolkit/@MModel/opt_init.m,
mmvn_toolkit/@MModel/private/checkModelDims.m,
mmvn_toolkit/@MModel/private/checkTheta.m,
mmvn_toolkit/@MModel/setData.m,
mmvn_toolkit/@MModel/setKnames.m,
mmvn_toolkit/@MModel/setMeans.m,
mmvn_toolkit/@MModel/setModelDims.m,
mmvn_toolkit/@MModel/setTheta.m,
mmvn_toolkit/@MModel/subsasgn.m,
mmvn_toolkit/@MModel/subsref.m,
mmvn_toolkit/@MModel/weightedMeans.m,
mmvn_toolkit/@MMView/checkDim.m,
mmvn_toolkit/@MMView/gate.m,
mmvn_toolkit/@MMView/getAnalysisStep.m,
mmvn_toolkit/@MMView/mmplot.m,
mmvn_toolkit/@MMView/MMView.m,
mmvn_toolkit/@MMView/private/addLabelDropDowns.m,
mmvn_toolkit/@MMView/private/createClusterMenu.m,
mmvn_toolkit/@MMView/private/createEllipseMenu.m,
mmvn_toolkit/@MMView/private/createExtDimMenu.m,
mmvn_toolkit/@MMView/private/doContour.m,
mmvn_toolkit/@MMView/private/doPlot.m,
mmvn_toolkit/@MMView/subsasgn.m,
mmvn_toolkit/@MMView/subsref.m,
mmvn_toolkit/@MMView/viewToModelDims.m,
mmvn_toolkit/center.m,
mmvn_toolkit/colorfulcube.m,
mmvn_toolkit/Contents.m,
mmvn_toolkit/ellipse.m,
mmvn_toolkit/getAxisInset.m,
mmvn_toolkit/getColExtent.m,
mmvn_toolkit/ind2logical.m,
mmvn_toolkit/linspace.m,
mmvn_toolkit/mah.m,
mmvn_toolkit/mmvn_expectation.m,
mmvn_toolkit/mmvn_fit.m,
mmvn_toolkit/mmvn_fit_movie.m,
mmvn_toolkit/mmvn_gen.m,
mmvn_toolkit/mmvn_getTheta.m,
mmvn_toolkit/mmvn_logl_surface.m,
mmvn_toolkit/mmvn_maximization.m,
mmvn_toolkit/mmvn_pdf.m,
mmvn_toolkit/mmvn_tutorial.m,
mmvn_toolkit/mvn_pdfln.m,
mmvn_toolkit/plot_table.m,
mmvn_toolkit/scale.m,
mmvn_toolkit/table.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
19 Nov 2007 foued saadaoui  
30 Dec 2008 Shawn_lj Qingsheng

Hello! I tried the example in the MMView.m, but the error happened as below:
>>mm = MModel(X, [1 2], 4 );
??? Error using ==> kmeans.kmeans
Too many input arguments.

Error in ==> MModel.kmeans_init at 30
    [Ci,C] = kmeans(mm.x(:,mm.s), k,...

Error in ==> MModel.MModel at 90
        mm = kmeans_init(mm,t);

Please solve the problem and tell me, thanks!

Please login to add a comment or rating.
Updates
09 Jul 2007

update inspired-by line and description

13 Jul 2007

fix bug in mmvn_gen to allow a scalar to be used to specify the number of cases.

Update the inspired by line

Tag Activity for this File
Tag Applied By Date/Time
statistics Michael Boedigheimer 22 Oct 2008 09:18:45
probability Michael Boedigheimer 22 Oct 2008 09:18:45
em Michael Boedigheimer 22 Oct 2008 09:18:45
gaussian mixture Michael Boedigheimer 22 Oct 2008 09:18:45
normal density Michael Boedigheimer 22 Oct 2008 09:18:45
likelihood Michael Boedigheimer 22 Oct 2008 09:18:45
expectation Michael Boedigheimer 22 Oct 2008 09:18:45
maximiz Michael Boedigheimer 22 Oct 2008 09:18:45
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com