dsClassMerge

Merge classes in a dataset

Contents

Syntax

Description

DS2=dsClassMerge(DS, equivClass) returns a new DS2 which merges classes in DS based on equivClass.

Example

DS=prData('iris');
DS2=dsClassMerge(DS, {[1,3], [2]})
DS2 = 

  struct with fields:

      dataName: 'iris'
     inputName: {'sepal length'  'sepal width'  'petal length'  'petal width'}
    outputName: {'Setosa & Virginica'  'Versicolour'}
         input: [4×150 double]
        output: [1×150 double]

See Also

dsClassSize.


Top page   Next: dsBoxPlot.m   Prev:dsClassSize.m