MATLAB File Help: prtClassFld/prtClassFld
prtClassFld/prtClassFld
 prtClassFld Fisher linear discriminant classifier
  
     CLASSIFIER = prtClassFld returns a Fisher linear discriminant classifier
 
     CLASSIFIER = prtClassFld(PROPERTY1, VALUE1, ...) constructs a
     prtClassFld object CLASSIFIER with properties as specified by
     PROPERTY/VALUE pairs.
 
     A prtClassFld object inherits all properties from the abstract class
     prtClass. In addition is has the following properties:
 
     w                  - regression weights, estimated during training
     plotBasis          - Flag indicating whether to plot the basis
                          functions when the PLOT function is called
     plotProjections    - Flag indicating whether to plot the projection
                          of points to the basis when the PLOT function is
                          called
 
     For information on the Fisher Linear Discriminant algorithm, please
     refer to the following URL:
 
     http://en.wikipedia.org/wiki/Linear_discriminant_analysis#Fisher.27s_linear_discriminant
 
     A prtClassFld object inherits the TRAIN, RUN, CROSSVALIDATE and
     KFOLDS methods from prtAction. It also inherits the PLOT method from
     prtClass.
 
     Example:
 
     TestDataSet = prtDataGenUniModal;       % Create some test and
     TrainingDataSet = prtDataGenUniModal;   % training data
     classifier = prtClassFld;           % Create a classifier
     classifier = classifier.train(TrainingDataSet);    % Train
     classified = run(classifier, TestDataSet);         % Test
     subplot(2,1,1);
     classifier.plot;
     subplot(2,1,2);
     [pf,pd] = prtScoreRoc(classified,TestDataSet);
     h = plot(pf,pd,'linewidth',3);
     title('ROC'); xlabel('Pf'); ylabel('Pd');
See also