## S3 method for class 'default':
grpdelay(filt, a = 1, n = 512, whole = FALSE, Fs = NULL, \ldots)
## S3 method for class 'Arma':
grpdelay(filt, \ldots)
## S3 method for class 'Ma':
grpdelay(filt, \ldots)
## S3 method for class 'Zpg':
grpdelay(filt, \ldots)
## S3 method for class 'grpdelay':
plot(x, \ldots)
## S3 method for class 'grpdelay':
print(x, \ldots)
filt
specifies an arbitrary model or filter operation.'half'
or FALSE
(the default) to evaluate
around the upper half of the
unit circle or whole'
to evaluate around the entire unit circle.grpdelay
, arguments are passed to
the default method. For plot.grpdelay
, additional arguments
are passed through to plot
.grpdelay
with items:Fs
).TRUE
for frequencies in Hz, FALSE
for frequencies in radians.n
should factor into a small number of
small primes.
If the denominator of the computation becomes too small, the group delay
is set to zero. (The group delay approaches infinity when
there are poles or zeros very close to the unit circle in the z plane.)
When results of grpdelay
are printed, the group delay will be
plotted. As with lattice
plots, automatic printing does not work
inside loops and function calls, so explicit calls to print
or
plot
are needed there.filter
, Arma
, freqz
# Two Zeros and Two Poles
b = poly(c(1/0.9*exp(1i*pi*0.2), 0.9*exp(1i*pi*0.6)))
a = poly(c(0.9*exp(-1i*pi*0.6), 1/0.9*exp(-1i*pi*0.2)))
grpdelay(b, a, 512, 'whole', 1)
Run the code above in your browser using DataLab