Is it possible to determine all intercepts of noisy data and a constant value?
I am working on a project with a sensitive probe and need to know when my data drops below a certain limit.
You could compare my data with this random result:
import numpy as np
import matplotlib.pyplot as plt
noise = np.random.normal(1, 2, 50)
x = np.arange(0, 50)
fig, ax = plt.subplots()
ax.plot(x, noise, '-')
ax.axhline(1, color='r')
I already tried the scipy.interpolate.interp1d function as a possible solution but this doesn't seem to be the correct approach towards this issue. Is there a way to find these intercepts?