Dmax
Dmax model for lactate threshold estimation.
The Dmax method is used to estimate the lactate threshold by identifying the point of maximal perpendicular distance from a straight line connecting the first and last points of the lactate curve.
This is computed by finding the point where the derivative of the lactate curve is equal to the average rate of change between the first and last points.
Attributes:
| Name | Type | Description |
|---|---|---|
plot |
DmaxPlot
|
An instance of the DmaxPlot class for visualizing the model. |
Initializes the Dmax model and its associated plot.
Methods:
| Name | Description |
|---|---|
fit |
Fits the Dmax model to the given data. |
predict |
Predicts intensity for the Dmax method. |
fit
Fits the Dmax model to the given data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ArrayLike
|
The independent variable (e.g., intensity). |
required |
|
ArrayLike
|
The dependent variable (e.g., lactate concentration). |
required |
|
str
|
The implementation type. Options are "normal" or |
'normal'
|
|
float
|
Threshold above baseline |
0.4
|
|
str
|
Method to use for fitting the model. Options are:
Defaults to "4th_poly". |
required |
Returns:
| Name | Type | Description |
|---|---|---|
self |
Fitted Dmax model instance. |