IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
pre_diff_sg.m
Go to the documentation of this file.
1 %> @brief Savitsky-Golay (SG) Differentiation
2 %>
3 %> See also: diff_sg.m, uip_pre_diff_sg.m
4 classdef pre_diff_sg < pre
5  properties
6  %> =1. Differentiation order.
7  order = 1;
8  %> =2. Polynomial order.
9  porder = 2;
10  %> =9. Number of coefficients of filter.
11  ncoeff = 9;
12  end;
13 
14 
15  methods
16  function o = pre_diff_sg(o)
17  o.classtitle = 'Differentiation SG';
18  o.short = 'DiffSG';
19  end;
20  end;
21 
22  methods(Access=protected)
23  function data = do_use(o, data)
24  [data.X, data.fea_x] = diff_sg(data.X, data.fea_x, o.order, o.porder, o.ncoeff);
25  end;
26  end;
27 end
Savitsky-Golay (SG) Differentiation.
Definition: pre_diff_sg.m:4
Pre-processing block base class.
Definition: pre.m:2
function diff_sg(in X, in x, in order, in porder, in ncoeff)