calcMinimizingMassCenterVelocityZIntegrand.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% This function minimizes the center of mass velocity in the z direction.
%
% (struct, struct) -> (Array of number)
%
function cost = calcMinimizingMassCenterVelocityZIntegrand(values, params)
massCenterVelocity = calcMassCenterVelocity(values, params.model, ...
params.coordinateNames);
cost = calcMinimizingCostArrayTerm(massCenterVelocity(:, 3));
end