BinnedEvaluator

class minkit.BinnedEvaluator(fcn, pdf, data, constraints=None)[source]

Bases: minkit.Evaluator

Proxy class to evaluate an FCN with a PDF on a BinnedDataSet object.

Parameters:
  • fcn (str) – FCN to be used during minimization.
  • pdf (PDF) – PDF to minimize.
  • data (BinnedDataSet) – data sample to process.
  • constraints (list(PDF) or None) – set of constraints to consider in the minimization.

Attributes Summary

args All the arguments of the evaluator.

Methods Summary

__call__(*values) Evaluate the FCN.
fcn() Calculate the value of the FCN with the current set of values.
using_caches() Create a context where the cache of the PDF is activated.

Attributes Documentation

args

All the arguments of the evaluator.

Type:Registry(Parameter)

Methods Documentation

__call__(*values)[source]

Evaluate the FCN. Values must be provided sorted as PDF.args().

Parameters:values (tuple(float)) – set of values to evaluate the FCN.
Returns:Value of the FCN.
Return type:float

See also

Evaluator.fcn()

fcn()[source]

Calculate the value of the FCN with the current set of values.

Returns:Value of the FCN.
Return type:float
using_caches()[source]

Create a context where the cache of the PDF is activated. This should be done before successive calls to the evaluator.