Epoch Folding
Function to find periodicities in time-data.
- ef_search.periodic_generator(period=50, obs_length=1000, mean_countrate=10, pulsed_fraction=1.0)
Periodic events generator
Generates poisson sin-like data
- Parameters
period (float) – period of the signal.
obs_length (float) – duration of observation.
mean_countrate (float) – average counts per sec.
pulsed_fraction (float) – from 0 to 1 - sin pulse fraction
- Returns
generated periodic arrival times
- Return type
array
- ef_search.search(times, period_min, period_max, nbins=20, nperiods=1000)
Epoch folding
Calculate chi2 statistics for time-event data
- Parameters
times (array) – time-event data (photon arrival times).
period_min (float) – starting period for search.
period_max (float) – ending period for search.
- Returns
array of calculated chi2 statistics
- Return type
array