Changeset 253 for trunk/src/RegressionLocal.cc
- Timestamp:
- Mar 3, 2005, 12:08:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/RegressionLocal.cc
r245 r253 19 19 } 20 20 21 void RegressionLocal::fit(const double f, const u_int step_size) 21 void RegressionLocal::fit(std::ostream& s, const double f, 22 const u_int step_size) 22 23 { 23 24 sort(data_.begin(), data_.end()); 25 regressor_->print_header(s); 26 s << std::endl; 24 27 25 28 // number of points on each side … … 52 55 } 53 56 54 55 57 // copying data 56 58 // Peter, too much copying. Move the copying outside loop and … … 77 79 regressor_->predict(x_[x_.size()-1], y_[y_.size()-1], 78 80 y_err_[y_err_.size()-1]); 81 regressor_->print(s); 82 s << std::endl; 79 83 } 80 84 } 81 85 82 std::ostream& RegressionLocal::print(std::ostream& s) const83 {84 for (size_t i=0; i<x_.size(); i++) {85 regressor_->print(s);86 s << std::endl;87 }88 return s;89 }90 86 91 87
Note: See TracChangeset
for help on using the changeset viewer.