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