calcSpringConstantsErrorFromMean.m
% This function is part of the NMSM Pipeline, see file for full license.
%
%
%
% (Array of double, struct, struct) -> (struct)
% Optimize ground contact parameters according to Jackson et al. (2016)
function error = calcSpringConstantsErrorFromMean(springConstants)
meanSpringConstant = sum(springConstants)/length(springConstants);
error = (springConstants - meanSpringConstant);
end