%% FILTER DATA
% Define the num/den coefficients of the rational transfer function. where
% (a) is the denominator and (b) is the numerator. I visually inspected a
% few datasets and found a window_size of 3 to give a reasonable fit.
function filtered_data = FilterData(data)
window_size = 3;
a = 1;
b = (1/window_size)*ones(1,window_size);
filtered_data = filter(b,a,data);
end