Polyfit
financepy.utils.polyfit
Fast polynomial fit with optional Numba acceleration.
Set FINANCEPY_USE_NUMBA=1 to enable Numba (import & JIT deferred until first use).
Functions
eval_polynomial
eval_polynomial(p: 'np.ndarray', x: 'np.ndarray') -> 'np.ndarray'
Evaluate polynomial with coefficients `p` (highest-first) at points `x`.
fit_poly
fit_poly(x: 'np.ndarray', y: 'np.ndarray', deg: 'int') -> 'np.ndarray'
Fit polynomial of degree `deg` to points (x, y).
Returns coefficients with highest order first (same as original API).
Generated automatically from the FinancePy source code.
Do not edit this file manually.