BBH waveform generated from Bilby can't tell the distance. We adjust its amplitude the same to Korean waveform's, then we can infer BBH waveform's distance(since we know all information of Korean waveform).
## (2) make injection
## (3) plot the Amplitude Spectral Density (ASD)
Plotting these data in the Fourier domain gives us an idea of the frequency content of the data. A way to visualize the frequency content of the data is to plot the amplitude spectral density, ASD.
The ASDs are the square root of the power spectral densities (PSDs), which are averages of the square of the fast fourier transforms (FFTs) of the data.
They are an estimate of the "strain-equivalent noise" of the detectors versus frequency, which limit the ability of the detectors to identify GW signals.
They are in units of strain/rt(Hz).
## (2) Make injection
## (3) Plot the Amplitude Spectral Density (ASD)
Plotting these data in the Fourier domain gives us an idea of the frequency content of the data. A way to visualize the frequency content of the data is to plot the amplitude spectral density, ASD. The ASDs are the square root of the power spectral densities (PSDs), which are averages of the square of the fast fourier transforms (FFTs) of the data. They are an estimate of the "strain-equivalent noise" of the detectors versus frequency, which limit the ability of the detectors to identify GW signals.
Then we consider reasonable frequency range from LIGO's detection. On the one hand, the limit of the seismic isolation systems designed by aLIGO is 10Hz, which is actually not good for low frequency noise below 20Hz. On the other hand, according to Nyquist–Shannon sampling theorem, for half of the sampling rate(128Hz) and above, signal's frequency is meaningless.
Then we get a new plot:
Then we consider reasonable frequency range from LIGO's detection. On the one hand, the limit of the seismic isolation systems designed by aLIGO is 10Hz, which means signal doesn't have good quality for low frequency noise below 20Hz. On the other hand, according to Nyquist–Shannon sampling theorem, for half of the sampling rate(128Hz) and above, signal's frequency is meaningless.
Therefore, set f_min = 20Hz, f_max = 128Hz, we get a new plot:
$$\hat{x}\left ( f \right )=\int_{-\infty }^{\infty } e^{-2\pi ift}x(t)dt$$
Whitening signal means dividing it by the ASD in the fourier domain, suppressing the extra noise at low frequencies and at the spectral lines, to better see the weak signals in the most sensitive band.
> The way forward is to whiten the signal generations and then add white noise to it. So we need to know what noise curve VItamin is expecting for the whitening.
## (4) Whiten signal
> For Vitamin we would require the data to match the properties fo the training data.
It’s important that your signals are whitened in the same way. We would expect the input data to then have whitened signal + Gaussian white noise of unit variance and zero mean.
For Vitalmin box, We would expect the input data to then have whitened signal,Gaussian white noise of unit variance and zero mean. Whitening signal means dividing it by the ASD in the fourier domain, suppressing the extra noise at low frequencies and at the spectral lines, to better see the weak signals in the most sensitive band.
```
def whiten_signal(signal, asd):
> Hunter is using the aLIGO zero detuning, high power design sensitivity PSD found at the link below under the file titled "aLIGO_ZERO_DET_high_P_psd.txt". For Virgo the file is "AdV_psd.txt". These are the default noise curves used by bilby.
We use aLIGO zero detuning, high power design sensitivity PSD found at the link below under the file titled "aLIGO_ZERO_DET_high_P_psd.txt". For Virgo the file is "AdV_psd.txt". These are the default noise curves used by bilby.
The resulting time series is no longer in units of strain, now in units of "sigmas" away from the mean.
##
To calculate the PSD of the data, we choose an overlap and a window (common to all detectors) that minimizes "spectral leakage"
In terms of the machine learning side of things, the whitening is primarily done to normalise the data for input to the neural network. So long as you give the network signals with similar noise properties and priors as those it was trained on, it should function properly.
## (5)window...?
an overlap and a window to minimizes "spectral leakage"
# 2.Data
## (1)Korean merger wavform
...
...
@@ -51,12 +57,16 @@ To calculate the PSD of the data, we choose an overlap and a window (common to a
> y_data_noisefree == The noisefree waveform at each observatory with dimension (number of detectors, sampling frequency * duration).
# 3.Code
## (1)Adjust BBH waveform's amplitude the same to Korean waveform's.
## (1)Adjust BBH waveform's amplitude the same to Korean waveform's