I did polynomial regression on some data. The graph was plotted. But how do I get the function "f(x)" of the plotted graph? I like to integrate the function!
z = np.polyfit(x, y1, 6)
p = np.poly1d(z)
xp = np.linspace(0, 1, 100)
line = plt.plot(x, y1, '.', xp, p(xp), '-', label=' G_MEAN_1 ')
plt.ylim(0, 1)
plt.legend()
plt.show()
So how can I get the function out of here - for integration?