42 const std::vector<double>& XYbounds,
44 CHECK_EQ(XYbounds.size(), 4U) <<
"XYbounds size is not 4, but" << XYbounds.size();
54 traversed_x_.push_back(x);
55 traversed_y_.push_back(y);
56 traversed_phi_.push_back(phi);
58 index_ = ComputeStringIndex(x_grid_, y_grid_, phi_grid_);
62 const std::vector<double>& traversed_x,
63 const std::vector<double>& traversed_y,
64 const std::vector<double>& traversed_phi,
65 const std::vector<double>& XYbounds,
67 CHECK_EQ(XYbounds.size(), 4U) <<
"XYbounds size is not 4, but" << XYbounds.size();
68 CHECK_EQ(traversed_x.size(), traversed_y.size());
69 CHECK_EQ(traversed_x.size(), traversed_phi.size());
71 x_ = traversed_x.back();
72 y_ = traversed_y.back();
73 phi_ = traversed_phi.back();
80 traversed_x_ = traversed_x;
81 traversed_y_ = traversed_y;
82 traversed_phi_ = traversed_phi;
84 index_ = ComputeStringIndex(x_grid_, y_grid_, phi_grid_);
85 step_size_ = traversed_x.size();
92 const std::vector<double>& XYbounds,
94 CHECK_EQ(XYbounds.size(), 4U) <<
"XYbounds size is not 4, but" << XYbounds.size();
100 x_grid_ =
static_cast<int>((x_ - XYbounds[0]) / warm_start_conf.
xy_grid_resolution());
101 y_grid_ =
static_cast<int>((y_ - XYbounds[2]) / warm_start_conf.
xy_grid_resolution());
104 traversed_x_.push_back(x);
105 traversed_y_.push_back(y);
106 traversed_phi_.push_back(phi);
108 index_ = ComputeStringIndex(x_grid_, y_grid_, phi_grid_);
112 const std::vector<double>& traversed_x,
113 const std::vector<double>& traversed_y,
114 const std::vector<double>& traversed_phi,
115 const std::vector<double>& XYbounds,
117 CHECK_EQ(XYbounds.size(), 4U) <<
"XYbounds size is not 4, but" << XYbounds.size();
118 CHECK_EQ(traversed_x.size(), traversed_y.size());
119 CHECK_EQ(traversed_x.size(), traversed_phi.size());
121 x_ = traversed_x.back();
122 y_ = traversed_y.back();
123 phi_ = traversed_phi.back();
126 x_grid_ =
static_cast<int>((x_ - XYbounds[0]) / warm_start_conf.
xy_grid_resolution());
127 y_grid_ =
static_cast<int>((y_ - XYbounds[2]) / warm_start_conf.
xy_grid_resolution());
130 traversed_x_ = traversed_x;
131 traversed_y_ = traversed_y;
132 traversed_phi_ = traversed_phi;
134 index_ = ComputeStringIndex(x_grid_, y_grid_, phi_grid_);
135 step_size_ = traversed_x.size();