Utils
WORK IN PROGRESS
- QUnfold.utils.compute_chi2(observed, expected, covariance)[source]
Compute the reduced chi-square between the observed and the expected histogram.
- Parameters:
observed (numpy.ndarray) – observed histogram.
expected (numpy.ndarray) – expected histogram.
covariance (numpy.ndarray) – covariance matrix.
- Returns:
reduced chi-square.
- Return type:
float
- QUnfold.utils.normalize_response(response, truth_mc)[source]
Normalize the response matrix using the Monte Carlo generated truth histogram.
- Parameters:
response (numpy.ndarray) – response matrix to normalize.
truth_mc (numpy.ndarray) – Monte Carlo truth histogram.
- Returns:
normalized response matrix.
- Return type:
numpy.ndarray