processing
poly_fitting(i:array-like, j:array-like, polynomial_degree:int, line_space:int)
Fit a polynomial to data and generate interpolated points.
Parameters:
i
(array-like): Input x-coordinates.j
(array-like): Input y-coordinates.polynomial_degree
(int): Degree of the polynomial to fit (default: 3).line_space
(int): Number of points for interpolation (default: 100).
Returns:
tuple[np.ndarray, np.ndarray]
: Interpolated x and y values.Author:
- Yassin Riyazi (Improved polynomial fitting and interpolation)
- Sajjad Shumaly
Labels:
src_PyThon_ContactAngle_CaMeasurer_processing_poly_fitting