find_smaller_index: Finds the index of the smaller neighbour of the given value in the vector x.
Description
Finds the index of the smaller neighbour of the given value in the vector x.
Usage
find_smaller_index(value, x)
Arguments
value,
value whose neighbour is searched