function [newData] = IntegralCorrection(data) %% Integral correction constant IntegralCorrectionConstant = 10.6383 / 2000000.0; %% Calculate cumulative sum dataCumSum = cumsum(data); %% Correct data newData = data + IntegralCorrectionConstant * dataCumSum;