20 #include <lal/LALNoiseModels.h>
60 n = length = noisy->
length;
63 for (i=1; i<nby2; i++)
70 x = sqrt(2.*psd.
data[i]);
74 x = sqrt(2.*psd.
data[0]);
76 x = sqrt(2.*psd.
data[nby2]);
77 noisy->
data[nby2] *=
x;
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
void LALColoredNoise(LALStatus *status, REAL4Vector *noisy, REAL8Vector psd)
This function colors a given white noise input into a colored noise of power spectral density psd.
#define LALNOISEMODELSH_ENULL
Arguments contained an unexpected null pointer.
#define LALNOISEMODELSH_ESIZE
Invalid input size.
LAL status structure, see The LALStatus structure for more details.
Vector of type REAL4, see DATATYPE-Vector types for more details.
REAL4 * data
Pointer to the data array.
UINT4 length
Number of elements in array.
Vector of type REAL8, see DATATYPE-Vector types for more details.
REAL8 * data
Pointer to the data array.
UINT4 length
Number of elements in array.