mre

Calculates the mean absolute relative error

Contents

Syntax

[merr rerr] = mre(func, p, varargin)

Description

Calculates the mean absolute relative error, used in add_my_pet

Input

   xywi(:,1) independent variable
   xywi(:,2) dependent variable
   xywi(:,3) weight coefficients (optional)
   The number of data matrices xyw1, xyw2, ... is optional
   The first data matrix is assumed to be zero-variate,
     the others uni-variate, which are first reduced to zero-variate data
     if all weight coefficients in a uni-variate data-set are zero,
     that relative error gets weight zero

Output