mstk.analyzer.fitting.polyval_derivative_2d¶
- mstk.analyzer.fitting.polyval_derivative_2d(x, y, degree, coeff)¶
Evaluate the n-th order 2-D polynomial result and derivative. Only 3-rd and 4-th order are supported. e.g. the 3rd polynomial fitting: z = c0 + c1 * x + c2 * y + c3 * xx + c4 * xy + c5 * yy + c6 * xxx + c7 * xxy + c8 * xyy + c9 * yyy
- Parameters:
x (float) –
y (float) –
degree ([3, 4]) –
coeff (list of float) –
- Returns:
z (float)
dz/dx (float)
dz/dy (float)