Skip to content

Dmax

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

fit(X: ArrayLike, y: ArrayLike, impl: str = 'normal', threshold_above_baseline=0.4, **kwargs)

Fits the Dmax model to the given data.

Parameters:

Name Type Description Default

X

ArrayLike

The independent variable (e.g., intensity).

required

y

ArrayLike

The dependent variable (e.g., lactate concentration).

required

impl

str

The implementation type. Options are "normal" or

'normal'

threshold_above_baseline

float

Threshold above baseline

0.4

method

str

Method to use for fitting the model. Options are:

  • "3th_poly": 3rd degree polynomial
  • "4th_poly": 4th degree polynomial
  • "spline": Cubic Spline

Defaults to "4th_poly".

required

Returns:

Name Type Description
self

Fitted Dmax model instance.

predict

predict() -> float

Predicts intensity for the Dmax method.

Returns:

Name Type Description
float float

Predicted intensity.