perClass Documentation
version 5.1 (31-May-2017)
 SDDECIDE Add decisions to a pipeline

   PD=SDDECIDE(P)
   PD=SDDECIDE(P,R)

 Create a set of operating points manually
   PD=SDDECIDE('w',WEIGHTS,LIST)
   PD=SDDECIDE('thr',THR,LIST)

 INPUT
    P        trained pipeline returning soft outputs
    R        SDROC object
    WEIGHTS  Matrix of class weights (op.points vs classes)
    THR      Vector of thresholds
    LIST     SDLIST object with decision names

 OUTPUT
    PD       pipeline P with added operating point

 DESCRIPTION
 SDDECIDE adds an operating point to a pipeline P. If not specified,
 default operating point is added. For pipelines with single output, zero
 threshold is used, for two or more outputs, equal weights for all classes.
 SDDECIDE may also add operating poins from SDROC object R, if
 provided.
 SDDECIDE may be used for creating operating point manually if the first
 argument is a string ('w' for weighting-based or 'thr' for
 thresholding-based op.points).

 EXAMPLES
 Creating decision pipeline with manual operating point:
  pd=sddecide('w',[0.8 0.2],sdlist('apple','banana'))
  pd=sddecide('thr',0,sdlist('target','non-target'))

 SEE ALSO
 SDCONVERT, SDOPS

sddecide is referenced in examples: