Home > biosig > t400 > classify.m

classify

PURPOSE ^

CLASSIFY classifies sample data into categories

SYNOPSIS ^

function [CLASS,ERR,POSTERIOR,LOGP,COEF]=classify(sample,training,classlabel,TYPE)

DESCRIPTION ^

 CLASSIFY classifies sample data into categories 
 defined by the training data and its group information 

  CLASS = classify(sample, training, group) 
  CLASS = classify(sample, training, group, TYPE) 
  [CLASS,ERR,POSTERIOR,LOGP,COEF] = CLASSIFY(...) 

  CLASS contains the assigned group. 
  ERR is the classification error on the training set weighted by the 
    prior propability of each group. 

  The same classifier as in TRAIN_SC are supported. 

 ATTENTION: no cross-validation is applied, therefore the 
    classification error is too optimistic (overfitting). 
    Use XVAL instead to obtain cross-validated performance. 
 
 see also: TRAIN_SC, TEST_SC, XVAL

 References:
 [1] R. Duda, P. Hart, and D. Stork, Pattern Classification, second ed.
       John Wiley & Sons, 2001.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003