mxe_costgrad
Note: This is a private function.
Returns the cost (negative log-likelihood) and its Riemannian gradient with respect to distribution parameters calculated on data, considering penalization, etc. Used in gradient-based estimation functions.
Syntax
[cost, grad] = mxe_costgrad(D, theta, data, options)