IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

Returns indexes for manual feature selection.

Implements several ways of converting a list of features specificication into the actual feature indexes

Examples:

% for v_type = 'x'
v = [1800, 1474; 1432, 1401; 1313, 1176; 1134, 900];
% for type = 'i'
v = [1 86;97 105;128 163;174 235];

Definition in file get_feaidxs.m.

Go to the source code of this file.

Functions

function get_feaidxs (in x, in v, in v_type, in flag_complement)
 

Function Documentation

function get_feaidxs ( in  x,
in  v,
in  v_type,
in  flag_complement 
)
Parameters
xFeature x-axis, such as irdata::fea_x
vContains ranges or an index list (see v_type below) to include, 1 in each row.
v_type
  • 'rx' if v is expressed in the same unit as data vars x
  • 'ri' if v contains index ranges
  • 'i' if v contains feature indexes
flag_complementIf 1, will exclude the specified variables
Returns
indexes Vector of feature indexes