Ignore:
Timestamp:
Jan 6, 2007, 5:06:19 PM (16 years ago)
Author:
Peter
Message:

added test for multidimensional weighted and straight version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/MultiDimensionalWeighted.cc

    r718 r731  
    6262  double MultiDimensionalWeighted::predict(const utility::vector& x) const
    6363  {
     64    assert(x.size()==fit_parameters_.size());
    6465    return fit_parameters_ * x;
    6566  }
     
    7879
    7980
    80   double MultiDimensionalWeighted::standard_error(const utility::vector& x) const
     81  double
     82  MultiDimensionalWeighted::standard_error2(const utility::vector& x) const
    8183  {
    8284    double s2 = 0;
     
    8688        s2 += 2*covariance_(i,j)*x(i)*x(j);
    8789    }
    88     return sqrt(s2);
     90    return s2;
    8991  }
    9092
Note: See TracChangeset for help on using the changeset viewer.