NormalizedSquaredError::FirstOrderTerms NormalizedSquaredError::calculate_first_order_terms(void) const
{
   FirstOrderTerms first_order_terms;

   first_order_terms.terms = calculate_terms();

   first_order_terms.Jacobian = calculate_terms_Jacobian();

   return(first_order_terms);
}
Esempio n. 2
0
MeanSquaredError::FirstOrderTerms MeanSquaredError::calculate_first_order_terms(
    void) {
// Control sentence (if debug)

#ifndef NDEBUG

  check();

#endif

  FirstOrderTerms first_order_terms;

  first_order_terms.terms = calculate_terms();

  first_order_terms.Jacobian = calculate_terms_Jacobian();

  return (first_order_terms);
}