structure_function#

gammapy.stats.structure_function(flux, flux_err, time, tdelta_precision=5)[source]#

Compute the discrete structure function for a variable source.

Parameters:
fluxQuantity

The measured fluxes.

flux_errQuantity

The error on measured fluxes.

timeQuantity

The time coordinates at which the fluxes are measured.

tdelta_precisionint, optional

The number of decimal places to check to separate the time deltas. Default is 5.

Returns:
sf, distancesndarray, Quantity

Discrete structure function and array of time distances.

References

[Emmanoulopoulos2010]

“On the use of structure functions to study blazar variability: caveats and problems”, Emmanoulopoulos et al. (2010) https://academic.oup.com/mnras/article/404/2/931/968488