Routines to produce a continuous stream of simulated gravitational-wave detector noise.
Prototypes | |
int | XLALSimNoise (REAL8TimeSeries *s, size_t stride, REAL8FrequencySeries *psd, gsl_rng *rng) |
Routine that may be used to generate sequential segments of data with a specified stride from one segment to the next. More... | |
int XLALSimNoise | ( | REAL8TimeSeries * | s, |
size_t | stride, | ||
REAL8FrequencySeries * | psd, | ||
gsl_rng * | rng | ||
) |
Routine that may be used to generate sequential segments of data with a specified stride from one segment to the next.
Calling instructions: for the first call, set stride = 0; subsequent calls should pass the same time series and have non-zero stride. This routine will advance the time series by an amount given by the stride and will generate new data so that the data is continuous from one segment to the next. For example: the following routine will output a continuous stream of detector noise with an Initial LIGO spectrum above 40 Hz:
If only one single segment of data is required, set stride to be the length of the timeseries data vector. This will make a single segment of data that is not periodic (also, in this case it will not advance the epoch of the timeseries).
s | [in/out] noise time series | |
[in] | stride | stride (samples) |
[in] | psd | power spectrum frequency series |
[in] | rng | GSL random number generator |
Definition at line 144 of file LALSimNoise.c.