mre_st

Calculates the mean absolute relative error

Contents

syntax

[merr rerr] = mre_st(func, p, st)

Description

Calculates the mean absolute relative error, used in add_my_pet

Input

  st.nm(:,1) independent variable
  st.nm(:,2) dependent variable
  st.nm(:,3) weight coefficients (optional)
  The number of data matrices in st fields 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