11.5.2.3. astroML.time_series.generate_power_law

astroML.time_series.generate_power_law(N, dt, beta, generate_complex=False, random_state=None)[source]

Generate a power-law light curve

This uses the method from Timmer & Koenig [1]

Parameters
Ninteger

Number of equal-spaced time steps to generate

dtfloat

Spacing between time-steps

betafloat

Power-law index. The spectrum will be (1 / f)^beta

generate_complexboolean (optional)

if True, generate a complex time series rather than a real time series

random_stateNone, int, or np.random.RandomState instance (optional)

random seed or random number generator

Returns
xndarray

the length-N

References

1(1,2)

Timmer, J. & Koenig, M. On Generating Power Law Noise. A&A 300:707