pycroxe.fitfunctions.FitFunction#

class pycroxe.fitfunctions.FitFunction(*args, **kwargs)#

Protocol class describing the uniform signature for every registered fit function.

Using a Protocol rather than a bare Callable alias allows static type checkers to verify the full signature, including the variadic **ctx, while keeping pycroxe.fitfunctions.REGISTRY open to any compliant callable.

Methods

FitFunction.__call__(energies, coefficients, ...)

Uniform call signature for every registered fit function.