IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
fcon_feaavg.m
Go to the documentation of this file.
1 %> @brief Decimation - makes averages of adjacent features
2 classdef fcon_feaavg < fcon
3  properties
4  %> = 2. Average every (factor) features. Curves will have floor(original_size*1/factor) number of point after averaging
5  factor = 2;
6  end;
7 
8  methods
9  function o = fcon_feaavg(o)
10  o.classtitle = 'Average features';
11  o.flag_params = 1;
12  end;
13  end;
14 
15  methods(Access=protected)
16  function data = do_use(o, data)
17  data.fea_x = decim(data.fea_x, o.factor);
18  data.X = decim(data.X, o.factor);
19  end;
20  end;
21 end
Decimation - makes averages of adjacent features.
Definition: fcon_feaavg.m:2
function decim(in X, in r)
Decimation occurs by averaging every r columns of X.
Feature Construction (FCon) base class.
Definition: fcon.m:2