hyperfine.minuit.LeastSquares3D

class hyperfine.minuit.LeastSquares3D(model: Callable, x: float, y: float, z: float, value: float, error: float, verbose: bool = False)[source]

Bases: GenericLeastSquares3D

Improved 3D least-squares cost function with error that deduces the parameter names and the numbers of parameters from the model signature via introspection. This is done by generating a function signature for the LeastSquares3D class from the signature of the model.

https://iminuit.readthedocs.io/en/stable/tutorial/generic_least_squares.html

__init__(model: Callable, x: float, y: float, z: float, value: float, error: float, verbose: bool = False)[source]

Methods

__init__(model, x, y, z, value, error[, verbose])

Attributes

errordef

__call__(*par) float

Functor for computing the chi2.

_eval_chi2(x: float, y: float, z: float, v: float, e: float, *par) float

Convenience method for calculating the chi2 contribution of a single set of points.