mt.pvalues¶
-
pvalues
(xvec, f, returnerror=False, **kwargs)[source]¶ Calculate the p-values for a certain maxima distribution f, of diferent values of the intensity.
- Parameters
xvec (np.ndarray) – Array with the intensities where the p-values will be calculated.
f (function) – Theoretical distribution of the maxima, f.
returnerror (bool, optional) – If
True
, the output will contain both the p-value and the error of the integration.**kwargs (dict) – Additional arguments will be passed to np.integrate.quad for the calculation of the p-value.
- Returns
Array containing the p-values calculated. If
returnerror
isTrue
, it will also containg the error of the integration.- Return type
np.ndarray