IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
pre_abs.m
Go to the documentation of this file.
1 %> @brief Takes absolute value of data X
2 classdef pre_abs < pre
3  methods
4  function o = pre_abs()
5  o.classtitle = 'Absolute value';
6  o.flag_params = 0;
7  end;
8  end;
9 
10  methods(Access=protected)
11  %> Applies block to dataset
12  function data = do_use(o, data)
13  data.X = abs(data.X);
14  end;
15  end;
16 end
Pre-processing block base class.
Definition: pre.m:2
Base Block class.
Definition: block.m:2
Takes absolute value of data X.
Definition: pre_abs.m:2