%**************************************************************************
%This function filters the field integral measurement data.
%
%Input:
%gap, measured gap values (m)
%i12xy, measured field integral values (Tm or Tm^2)
%gap_filt, gap values to return the filtered integrals at (m)
%
%Output:
%i12xy_filt, filtered field integral values (Tm or Tm^2)
%
%Zachary Wolf
%10/10/17

function [i12xy_filt] = pid_fit_i12xy_filt_low_pass(gap, i12xy)

%Do a polynomial fit to the measurements
p = polyfit(gap, i12xy, 8);
i12xy_filt = polyval(p, gap);

%Done
