Internal function. Not exported.
get_state(vec, x)
vec
numeric. A vector of intervals defining bins.
x
numeric. A target value.
Diego Porto