scale_pdf

nbi_stat.scale_pdf(logpdf=False)[source]

Decorate to add norm to a PDF (any PDF)

Parameters:

logpdf (bool) – If true, assume decorated function returns logarithm of the PDF

Returns:

wrapper – A decorator that has norm fixed to n

Return type:

callable