A function that uses linear interpolation like find_threshold_crosses does to get the exact y value of any given x value when given a vector of x and y values. Could then use as a backend for find_threshold_crosses but also exported for users in cases where they might want to do that
A function that uses linear interpolation like find_threshold_crosses does to get the exact y value of any given x value when given a vector of x and y values. Could then use as a backend for find_threshold_crosses but also exported for users in cases where they might want to do that