Classes | |
class | poly1d |
A one-dimensional polynomial class. More... | |
Functions | |
def | atleast_1d |
Force a sequence of arrays to each be at least 1D. | |
def | polyval |
Evaluate the polynomial p at x. | |
def | freqz |
Compute frequency response of a digital filter. | |
Variables | |
list | __all__ = ['freqz'] |
Num = numpy |
def gnuradio::gruimpl::freqz::atleast_1d | ( | arys | ) |
Force a sequence of arrays to each be at least 1D.
Description: Force an array to be at least 1D. If an array is 0D, the array is converted to a single row of values. Otherwise, the array is unaltered. Arguments: *arys -- arrays to be converted to 1 or more dimensional array. Returns: input array converted to at least 1D array.
def gnuradio::gruimpl::freqz::freqz | ( | b, | ||
a, | ||||
worN = None , |
||||
whole = 0 , |
||||
plot = None | ||||
) |
Compute frequency response of a digital filter.
Description:
Given the numerator (b) and denominator (a) of a digital filter compute its frequency response.
jw -jw -jmw jw B(e) b[0] + b[1]e + .... + b[m]e H(e) = ---- = ------------------------------------ jw -jw -jnw A(e) a[0] + a[2]e + .... + a[n]e
Inputs:
b, a --- the numerator and denominator of a linear filter. worN --- If None, then compute at 512 frequencies around the unit circle. If a single integer, the compute at that many frequencies. Otherwise, compute the response at frequencies given in worN whole -- Normally, frequencies are computed from 0 to pi (upper-half of unit-circle. If whole is non-zero compute frequencies from 0 to 2*pi.
Outputs: (h,w)
h -- The frequency response. w -- The frequencies at which h was computed.
def gnuradio::gruimpl::freqz::polyval | ( | p, | ||
x | ||||
) |
Evaluate the polynomial p at x.
If x is a polynomial then composition.
Description:
If p is of length N, this function returns the value: p[0]*(x**N-1) + p[1]*(x**N-2) + ... + p[N-2]*x + p[N-1]
x can be a sequence and p(x) will be returned for all elements of x. or x can be another polynomial and the composite polynomial p(x) will be returned.
list gnuradio::gruimpl::freqz::__all__ = ['freqz'] |
gnuradio::gruimpl::freqz::Num = numpy |