TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
featuresSelector.m File Reference

This function select a subset of features from 'featuresNames' based on 'include' / 'exclude' satements. Features are always returned in the same order than 'features name'. More...

Go to the source code of this file.

Functions

function featuresSelector (in featuresNames, in varargin)
 If no Include/exclude statement is specifed all features are returned. More...
 

Detailed Description

This function select a subset of features from 'featuresNames' based on 'include' / 'exclude' satements. Features are always returned in the same order than 'features name'.

Definition in file featuresSelector.m.

Function Documentation

◆ featuresSelector()

function featuresSelector ( in  featuresNames,
in  varargin 
)

If no Include/exclude statement is specifed all features are returned.

So far only one include/options option can be specified. If several are specified only the last will be taken into account. Proposed features which are not included in 'featuresNames' are rejected (no error output). Examples: featuresSelector({'A','B',C'},'Include',{'A','C'}) returns {'A','C'} featuresSelector({'A','B',C'},'Exclude',{'A'}) returns {'B','C'}

Author
Guillaume Chanel
Parameters
featuresNamescell array containing the complete list of features names
vararginpair of arguments in the matlab style. The second argument represent a subset of features as a cell array. The first argument tells if the subset should be removed from the full set of features ('exclude') or included in an empty set ('include')
Return values
selFeaturesa cell array of selected features