pydsm.NTFdesign.weighting.q0_weighting¶
- pydsm.NTFdesign.weighting.q0_weighting(P, w, **options)¶
Compute Q matrix from a noise weighting function or a filter
Parameters: P : int
order of the FIR to be eventually synthesized
w : callable with argument f in [0,1/2] or tuple
- if function: noise weighting function
- if filter definition as zpk or ba tuple: weighting is implicitly provided by the filter
Returns: q0 : ndarray
the first row of the matrix Q used in the NTF optimization
Other Parameters: quad_opts : dictionary, optional
Parameters to be passed to the quad function used internally as an integrator. Allowed options are epsabs, epsrel, limit, points. Do not use other options since they could break the integrator in unexpected ways.
See also
- scipy.integrate.quad
- For the meaning of the integrator parameters.
Notes
The Q matrix being synthesized has (P+1) times (P+1) entries.
Default values for the options not directly documented in the function call signature can be checked and updated by changing the function default_options attribute.