MATLAB File Help: prtClassMap/prtClassMap
prtClassMap/prtClassMap
 prtClassMap  Maximum a Posteriori classifier
  
     CLASSIFIER = prtClassMap returns a Maximum a Posteriori classifier
 
     CLASSIFIER = prtClassMap(PROPERTY1, VALUE1, ...) constructs a
     prtClassMAP object CLASSIFIER with properties as specified by
     PROPERTY/VALUE pairs.
 
     A prtClassMap object inherits all properties from the abstract class
     prtClass. In addition is has the following property:
 
     rvs    - A prtRv object. This property describes the random variable 
              model used for Maximum a Posteriori classification.
 
     A prtClassMap object inherits inherits the TRAIN, RUN, CROSSVALIDATE
     and KFOLDS methods from prtClass.
 
     Example:
 
     TestDataSet = prtDataGenUnimodal;       % Create some test and
     TrainingDataSet = prtDataGenUnimodal;   % training data
     classifier = prtClassMap;               % Create a classifier
     classifier = classifier.train(TrainingDataSet);    % Train
     classified = run(classifier, TestDataSet);         % Test
 
     subplot(2,1,1); classifier.plot;  % Plot results
     subplot(2,1,2); prtScoreRoc(classified,TestDataSet);
     set(get(gca,'Children'), 'LineWidth',3)
See also