PRSD Studio Documentation development version 2.2.3 (29-July-2010)
SDRELAB Rename classes or define meta-classes

    OUT=SDRELAB(IN,MAP)
    OUT=SDRELAB(IN,options)

 INPUT
    IN   SDLAB or SDDATA object
    MAP  cell array with relabeling rules

 OUTPUT
    OUT  relabeled SDLAB or SDDATA object

 OPTIONS
  'nodisplay'     - do not show the final label translation table
  'add','prefix'  - add prefix string to all class names
  'suffix'        - add suffix string to all class names
  'add to all'    - add prefix string to all groups in all indexed sample
                    properties (sdlab). IN must be SDDATA object

 DESCRIPTION
 SDRELAB allows us to redefine class names in SDLAB or SDDATA objects.
 Class renaming rules are defined in a cell array MAP with source and
 destination entries. Classes may be specified by names or indices. The
 Tilde character (~) in the source class name defines the negation. This
 means that the rule applies to all remainig classes.  SDRELAB prints the
 translation table by default. To suppress it, use 'nodisplay' option.

 EXAMPLES
  % relabel first two classes into 'fruit' and third class into 'outlier'
  B=sdrelab(A,{1:2,'fruit' 3 'outlier'})
  B=sdrelab(A,{'~outlier','target'}) % what is not 'outlier' becomes 'target'
  B=sdrelab(A,'add','old-')   % add prefix 'old-' to all class names

sdrelab is referenced in examples: