watex.utils.exmath.fitfunc#
- watex.utils.exmath.fitfunc(x, y, deg=None, sample=1000)[source]#
Create polyfit function from a specifc sample data points.
- Parameters:
x – array-like of x-axis.
y – array-like of y-axis.
deg – polynomial degree. If
Noneshould compute using the length of extrema (local + global).sample – int - Number of data points should use for fitting function. Default is
1000.
- Returns:
Polynomial function f
new axis x_new generated from the samples.
projected sample values got from f.