gstlal  1.4.1
Public Member Functions | Public Attributes | List of all members
python.reference_psd.PSDFirKernel Class Reference
Inheritance diagram for python.reference_psd.PSDFirKernel:
[legend]
Collaboration diagram for python.reference_psd.PSDFirKernel:
[legend]

Public Member Functions

def __init__ (self)
 
def set_phase (self, psd, f_low=10.0, m1=1.4, m2=1.4)
 
def psd_to_linear_phase_whitening_fir_kernel (self, psd, invert=True, nyquist=None)
 
def linear_phase_fir_kernel_to_minimum_phase_whitening_fir_kernel (self, linear_phase_kernel, sample_rate)
 

Public Attributes

 revplan
 
 fwdplan
 
 target_phase
 
 target_phase_mask
 

Detailed Description

Definition at line 435 of file reference_psd.py.

Member Function Documentation

◆ linear_phase_fir_kernel_to_minimum_phase_whitening_fir_kernel()

def python.reference_psd.PSDFirKernel.linear_phase_fir_kernel_to_minimum_phase_whitening_fir_kernel (   self,
  linear_phase_kernel,
  sample_rate 
)
Compute the minimum-phase response filter (zero latency)
associated with a linear-phase response filter (latency
equal to half the filter length).

From "Design of Optimal Minimum-Phase Digital FIR Filters
Using Discrete Hilbert Transforms", IEEE Trans. Signal
Processing, vol. 48, pp. 1491-1495, May 2000.

The return value is the tuple (kernel, phase response).
The kernel is a numpy array containing the filter kernel.
The kernel can be used, for example, with gstreamer's stock
audiofirfilter element.

Definition at line 590 of file reference_psd.py.

◆ psd_to_linear_phase_whitening_fir_kernel()

def python.reference_psd.PSDFirKernel.psd_to_linear_phase_whitening_fir_kernel (   self,
  psd,
  invert = True,
  nyquist = None 
)
Compute an acausal finite impulse-response filter kernel
from a power spectral density conforming to the LAL
normalization convention, such that if colored Gaussian
random noise with the given PSD is fed into an FIR filter
using the kernel the filter's output will be zero-mean
unit-variance Gaussian random noise.  The PSD must be
provided as a lal.REAL8FrequencySeries object.

The phase response of this filter is 0, just like whitening
done in the frequency domain.

The return value is the tuple (kernel, latency, sample
rate).  The kernel is a numpy array containing the filter
kernel, the latency is the filter latency in samples and
the sample rate is in Hz.  The kernel and latency can be
used, for example, with gstreamer's stock audiofirfilter
element.

Definition at line 476 of file reference_psd.py.


The documentation for this class was generated from the following file: