compute_chisq

gammapy.time.compute_chisq(flux)[source]

Calculate the chi-square test for LightCurve.

Chisquare test is a variability estimator. It computes deviations from the expected value here mean value

Parameters
fluxQuantity

the measured fluxes

Returns
ChiSq, P-valuetuple of float or ndarray

Tuple of Chi-square and P-value