DiffusionEstimate

lumicks.pylake.kymotracker.detail.msd_estimation.DiffusionEstimate

class DiffusionEstimate(value: float, std_err: float, num_lags: Optional[int], num_points: int, localization_variance: float, method: str, unit: str, _unit_label: str, variance_of_localization_variance: Optional[float] = None)

Diffusion estimate

value

Estimate for the diffusion constant.

Type:

float

std_err

Standard error.

Note: While this provides some measure of uncertainty, the estimate should not be used for calculating the weighted mean of multiple tracks. This is to prevent complications such as bias due to correlations between the estimated parameters and estimated variances. Instead, when calculating the weighted mean of estimates from time series of different lengths, the length \(N\) of a time series should be used as weight, since it is known exactly.

Type:

float

num_lags

Number of lags used to compute this estimate.

Type:

Optional[int]

num_points

Number of points used to compute this estimate.

Type:

int

localization_variance

Estimated localization variance.

Note: It is possible to obtain negative estimates for the localization variance when estimating diffusion based on single tracks.

Type:

float

method

String identifying which method was used to estimate the parameters.

Type:

str

unit

Unit that the diffusion constant is specified in.

Type:

str

variance_of_localization_variance

Estimate of the variance of the estimated localization variance.

Type:

Optional[float]