sweights

minkit.sweights(pdfs, yields, data, range='full', return_covariance=False)[source]

Calculate the s-weights for the different provided species.

Parameters:
  • pdfs (Registry) – registry of PDFs to use.
  • yields (Registry) – yields of the PDFs.
  • data (DataSet) – data to evaluate.
  • range (str) – range to consider for evaluating the PDFs.
  • return_covariance (bool) – if set to True, it also returns the covariance matrix.
Returns:

Values of the s-weights for each specie and possible covariance matrix.

Return type:

list(darray), (numpy.ndarray)

Raises:

ValueError – If the number of provided yields is smaller than the number of PDFs minus one.