hyperspy._components.polynomial module¶
-
class
hyperspy._components.polynomial.
Polynomial
(order=2, module='numexpr', **kwargs)¶ Bases:
hyperspy._components.expression.Expression
n-order polynomial component.
Polynomial component consisting of order + 1 parameters. The parameters are named “a” followed by the corresponding order, i.e.
Zero padding is used for polynomial of order > 10.
- Parameters
order (int) – Order of the polynomial, must be different from 0.
**kwargs – Keyword arguments can be used to initialise the value of the parameters, i.e. a2=2, a1=3, a0=1.
-
estimate_parameters
(signal, x1, x2, only_current=False)¶ Estimate the parameters by the two area method
- Parameters
- Returns
- Return type
-
get_polynomial_order
()¶
-
hyperspy._components.polynomial.
convert_to_polynomial
(poly_dict)¶ Convert the dictionary from the old to the new polynomial definition