hyperspy._components.offset module
- class hyperspy._components.offset.Offset(offset=0.0)
Bases:
Component
Component to add a constant value in the y-axis.
\[f(x) = k\]Variable
Parameter
\(k\)
offset
- Parameters:
offset (float) –
- property _constant_term
Get value of constant term of component
- estimate_parameters(signal, x1, x2, only_current=False)
Estimate the parameters by the two area method
- Parameters:
- Return type:
- function_nd(axis)
Returns a numpy array containing the value of the component for all indices. If enough memory is available, this is useful to quickly to obtain the fitted component without iterating over the navigation axes.