Uniform grid generation with unit increment. Similar to space except that
the increment is one. For instance x.range(0) has elements 0, 1, ... (up
to size x.size()-1).
Fill the vector with random numbers between 0 and 1 (two subsequent calls
to random will generate different elements)
size_t bra(const T elem)
Return the index of the element closest to the left of/at position of elem.
This assumes that the sequence is monotonically increasing. The
min/max return values are 0 and size()-1, respectively.
Return the indices of the elements that are closest to the left of elem.
This assumes that the sequence is monotonically increasing.
Parameters:
elem - reference abscissa
size_t ket(const T elem)
Return the index of the element closest to the right of elem.
This assumes that the sequence is monotonically increasing. The
min/max return values are 0 and size()-1, respectively.