calcTrackingOptimizationObjective.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% This function calculates the cost function objective for tracking
% optimization.
%
% (Number, Array of number, Number, struct) -> (Number)
% Returns objective
function objective = calcTrackingOptimizationObjective(integral)
continuousObjective = sum(integral) / length(integral);
objective = continuousObjective;
end