hyperfine.minuit.GenericLeastSquares3D

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

Bases: object

Generic 3D least-squares cost function with error.

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[source]

Functor for computing the chi2.

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

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