Changeset 1009 for trunk/yat/regression/Local.cc
 Timestamp:
 Feb 1, 2008, 5:15:44 AM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/regression/Local.cc
r1000 r1009 27 27 #include "OneDimensionalWeighted.h" 28 28 #include "yat/utility/vector.h" 29 #include "yat/utility/vectorView.h" 29 30 30 31 #include <algorithm> … … 59 60 60 61 size_t nof_fits=data_.size()/step_size; 61 x_ .clone(utility::vector(nof_fits));62 y_predicted_ .clone(utility::vector(x_.size()));63 y_err_ .clone(utility::vector(x_.size()));62 x_ = utility::vector(nof_fits); 63 y_predicted_ = utility::vector(x_.size()); 64 y_err_ = utility::vector(x_.size()); 64 65 sort(data_.begin(), data_.end()); 65 66 … … 102 103 assert(max_index<data_.size()); 103 104 104 utility::vector x_local(x, min_index, max_indexmin_index+1);105 utility::vector y_local(y, min_index, max_indexmin_index+1);105 utility::vectorView x_local(x, min_index, max_indexmin_index+1); 106 utility::vectorView y_local(y, min_index, max_indexmin_index+1); 106 107 107 108 // calculating weights
Note: See TracChangeset
for help on using the changeset viewer.