Changeset 13 for trunk/extremum_seeking/esc_approx/src
- Timestamp:
- 08/29/12 16:52:52 (12 years ago)
- Location:
- trunk/extremum_seeking/esc_approx/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/extremum_seeking/esc_approx/src/approx_esc_1d.cpp
r5 r13 35 35 k_grad_ = k_grad; 36 36 init_vel_ = init_vel; 37 sample_ = 0;38 37 sampling_ = sampling; 39 ptr_ = 0;40 38 states_.resize(data_size); 41 39 obj_vals_.resize(data_size); 40 sample_ = 0; 41 ptr_ = 0; 42 42 initialized_ = true; 43 43 } … … 111 111 return std::vector<std::string>(); 112 112 } 113 114 void ApproxESC1D::reset(){ 115 sample_ = 0; 116 ptr_ = 0; 117 } -
trunk/extremum_seeking/esc_approx/src/approx_esc_2d.cpp
r5 r13 33 33 k_grad_ = k_grad; 34 34 init_vel_ = init_vel; 35 sampling_ = sampling; 35 36 sample_ = 0; 36 sampling_ = sampling;37 37 ptr_ = 0; 38 states_ = Eigen::MatrixXf::Zero(2,data_size );38 states_ = Eigen::MatrixXf::Zero(2,data_size_); 39 39 obj_vals_ = Eigen::VectorXf::Zero(data_size_); 40 40 state_curr_.resize(2); … … 133 133 return std::vector<std::string>(); 134 134 } 135 136 void ApproxESC2D::reset(){ 137 sample_ = 0; 138 ptr_ = 0; 139 states_ = Eigen::MatrixXf::Zero(2,data_size_); 140 obj_vals_ = Eigen::VectorXf::Zero(data_size_); 141 }
Note: See TracChangeset
for help on using the changeset viewer.