Template Function navtk::utils::find_outside

Function Documentation

template<typename T>
std::vector<Size> navtk::utils::find_outside(const std::vector<double> &query_time, const std::vector<std::pair<double, T>> &data)

Generate a vector of indices marking elements considered outside of the range of another data set.

Template Parameters

T – Data type stored in vector.

Parameters
  • query_time – Values checked for ‘belonging’.

  • data – Data set of pairs of tags (first) and data elements (second); must be sorted according to ‘first’ members.

Returns

A vector of indices where the index k will be included if query_time[k] is not between or equal to the first and last elements of data as determined by comparison with the ‘first’ members of each pair. Return vector will be empty if all elements query_time are within data.