IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
pre_abs2atr.m
Go to the documentation of this file.
1 %> @brief Converts AB -> ATR
2 %>
3 %> Assumes that the x-axis represents wavenumbers in cm^-1
4 %>
5 %> <h3>Reference<h3>
6 %> OPUS help
7 classdef pre_abs2atr < pre
8  methods
9  function o = pre_abs2atr(o)
10  o.classtitle = 'Absorbance-to-ATR';
11  o.flag_params = 0;
12  end;
13  end;
14 
15  methods(Access=protected)
16  %> Applies block to dataset
17  function data = do_use(o, data)
18  data.X = data.X.*repmat(data.fea_x, data.no, 1)/1000;
19  end;
20  end;
21 end
Pre-processing block base class.
Definition: pre.m:2
Base Block class.
Definition: block.m:2
Converts AB -> ATR.
Definition: pre_abs2atr.m:7