bmad-sim / SimUtils.jl

Utility functions for scientific simulations.
https://bmad-sim.github.io/SimUtils.jl/
GNU Lesser General Public License v2.1
0 stars 1 forks source link

added algorithm to generate pink noise #8

Closed lllx125 closed 5 months ago

lllx125 commented 5 months ago

I wrote the code to generate pink noise from a given beta, where the spectrum is (1/f)^beta, and a given number of points. The algorithm is given by "Timmer, J. and Koenig, M.: On generating power law noise. Astron. Astrophys. 300, 707-710 (1995)". Test the spectrum by using plotspectrum function in PlotTimeSeries.jl

DavidSagan commented 5 months ago

@lllx125 using SimUtils does not load the generator. This needs to be fixed.