IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
pre_diff.m
Go to the documentation of this file.
1 %> @brief Simple differentiation using MATLAB @c diff() function
2 %>
3 %> @sa uip_pre_diff.m
4 classdef pre_diff < pre
5  properties
6  %> =1. Differentiation order
7  order = 1;
8  end;
9 
10  methods
11  function o = pre_diff(o)
12  o.classtitle = 'Differentiation';
13  o.short = 'Diff';
14  end;
15  end;
16 
17  methods(Access=protected)
18  function data = do_use(o, data)
19  data.fea_x = data.fea_x(o.order+1:end);
20  data.X = diff(data.X, o.order, 2);
21  end;
22  end;
23 end
Pre-processing block base class.
Definition: pre.m:2
Simple differentiation using MATLAB diff() function.
Definition: pre_diff.m:4