graphinglib.FitFromFOTF.__init__#
- FitFromFOTF.__init__(curve_to_be_fit: Curve | Scatter, label: str | None = None, guesses: ArrayLike | None = None, color: str = 'default', line_width: int | Literal['default'] = 'default', line_style: str = 'default') None [source]#
Create a curve fit (continuous
Curve
) from an existingCurve
object using a first order transfer function (FOTF) fit.Fits a first order transfer function of the form \(f(x) = K \left(1 - e^{-\frac{t}{\tau}}\right)\) to the given curve. All standard
Curve
attributes and methods are available.- Parameters:
- curve_to_be_fit
Curve
orScatter
The object to be fit.
- labelstr, optional
Label to be displayed in the legend.
- guessesArrayLike, optional
Initial guesses for the parameters of the fit. Order is K, tau.
- colorstr
Color of the curve. Default depends on the
figure_style
configuration.- line_widthint
Line width of the curve. Default depends on the
figure_style
configuration.- line_stylestr
Line style of the curve. Default depends on the
figure_style
configuration.
- curve_to_be_fit
- Attributes:
- gainfloat
Gain of the first order transfer function.
- time_constantfloat
Time constant of the first order transfer function.
- cov_matrixnp.ndarray
Covariance matrix of the parameters of the fit.
- standard_deviationnp.ndarray
Standard deviation of the parameters of the fit.
- functionCallable
First order transfer function with the parameters of the fit.