Skip to main content

calcMinimizingMassCenterVelocityYIntegrand.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function minimizes the center of mass velocity in the y direction.
%
% (struct, struct) -> (Array of number)
%


function cost = calcMinimizingMassCenterVelocityYIntegrand(values, params)

massCenterVelocity = calcMassCenterVelocity(values, params.model, ...
params.coordinateNames);
cost = calcMinimizingCostArrayTerm(massCenterVelocity(:, 2));
end