Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.propagate_fit  (  f x popt pcov sample_size = 1000000  )[source]

Parameters:
fCallable

The function to compute. $f$ needs to be vectorized.

xarray_like

The input values.

poptarray_like

An array of the fitted parameters (compare curve_fit).

pcovarray_like

A 2d-array of the estimated covariances (compare curve_fit).

sample_sizeint

The number of random variates used for the calculation. The default is 1,000,000.

Returns:
outNone

The median and the $1\sigma$ percentiles of the sampled function $f$.

API navigation