Rename time -> time_center

parent ccb340c5
Pipeline #15830 passed with stages
in 23 minutes and 11 seconds
...@@ -113,11 +113,11 @@ class BdaSolverBuffer { ...@@ -113,11 +113,11 @@ class BdaSolverBuffer {
void AddInterval(size_t n_directions); void AddInterval(size_t n_directions);
/** /**
* @param time Center time of a measurement / BDA row. * @param time_center Center time of a measurement / BDA row.
* @return The relative solution interval index for a given time. * @return The relative solution interval index for a given time.
*/ */
int RelativeIndex(double time) const { int RelativeIndex(double time_center) const {
return int(std::floor((time - time_start_) / time_interval_)) - return int(std::floor((time_center - time_start_) / time_interval_)) -
current_interval_; current_interval_;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment