# Changeset 1043 for trunk/yat/regression

Ignore:
Timestamp:
Feb 6, 2008, 8:30:03 PM (15 years ago)
Message:

fixing #128 - iterators in Averger classes

Location:
trunk/yat/regression
Files:
4 edited

Unmodified
Removed
• ## trunk/yat/regression/LinearWeighted.cc

 r1020 // want. ap_.reset(); ap_.add_values(x,y,utility::vector(x.size(),1),w); yat::utility::vector dummy(x.size(), 1.0); add(ap_, x.begin(), x.end(), y.begin(),dummy.begin(),w.begin()); alpha_ = m_y();
• ## trunk/yat/regression/NaiveWeighted.cc

 r1020 assert(y.size()==w.size()); ap_.reset(); ap_.add_values(x,y,utility::vector(x.size(),1.0), w); utility::vector dummy(x.size(),1.0); add(ap_, x.begin(), x.end(), y.begin(),dummy.begin(), w.begin()); chisq_ = ap_.y_averager().sum_xx_centered(); }
• ## trunk/yat/regression/Polynomial.cc

 r1019 const utility::VectorBase& y) { ap_.add_values(x,y); add(ap_, x.begin(), x.end(), y.begin()); utility::matrix X=utility::matrix(x.size(),power_+1,1); for (size_t i=0; i
• ## trunk/yat/regression/PolynomialWeighted.cc

 r1020 // product wx*wy, so we can send in w and a dummie to get what we // want. ap_.add_values(x,y,utility::vector(x.size(),1),w); utility::vector dummy(x.size(), 1.0); add(ap_,x.begin(), x.end(),y.begin(),dummy.begin(),w.begin()); utility::matrix X=utility::matrix(x.size(),power_+1,1); for (size_t i=0; i
Note: See TracChangeset for help on using the changeset viewer.