Changeset 1009 for trunk/yat/regression
 Timestamp:
 Feb 1, 2008, 5:15:44 AM (15 years ago)
 Location:
 trunk/yat/regression
 Files:

 3 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 
trunk/yat/regression/MultiDimensional.cc
r1000 r1009 58 58 assert(x.rows()==y.size()); 59 59 covariance_.clone(utility::matrix(x.columns(),x.columns())); 60 fit_parameters_ .clone(utility::vector(x.columns()));60 fit_parameters_ = utility::vector(x.columns()); 61 61 if (work_) 62 62 gsl_multifit_linear_free(work_); 
trunk/yat/regression/MultiDimensionalWeighted.cc
r1000 r1009 59 59 60 60 covariance_.clone(utility::matrix(x.columns(),x.columns())); 61 fit_parameters_ .clone(utility::vector(x.columns()));61 fit_parameters_ = utility::vector(x.columns()); 62 62 if (work_) 63 63 gsl_multifit_linear_free(work_);
Note: See TracChangeset
for help on using the changeset viewer.