Usage
periodogram(object, ...)
## S3 method for class 'Wave':
periodogram(object, width = length(object), overlap = 0,
starts = NULL, ends = NULL, taper = 0, normalize = TRUE,
frqRange = c(-Inf, Inf), ...)
## S3 method for class 'character':
periodogram(object, width, overlap = 0, from = 1, to = Inf,
units = c("samples", "seconds", "minutes", "hours"),
downsample = NA, channel = c("left", "right"), pieces = 1, ...)
Arguments
object
An object of class Wave
or a character string pointing to a Wave file. width
A window of width width
running through the time series selects the samples
from which the periodograms are to be calculated.
overlap
The window can be applied by each overlapping overlap
samples.
starts
Start number (in samples) for a window.
If not given, this value is derived from argument ends
,
or will be derived width
and overlap
.
ends
End number (in samples) for a window.
If not given, this value is derived from argument starts
,
or will be derived from width
and overlap
.
taper
proportion of data to taper. See spec.pgram
for details. normalize
Logical; if TRUE
(default), two steps will be applied:
(i) the input signal will be normalized to amplitude max(abs(amplitude)) == 1
,
(ii) the resulting spec
values will be normalized to sum up to one for e
frqRange
Numeric vector of two elements indicating minimum and maximum of the frequency range
that is to be stored in the resulting object. This is useful to reduce memory consumption.
from
Where to start reading in the Wave file, in units
.
to
Where to stop reading in the Wave file, in units
.
units
Units in which from
and to
is given, the default is samples,
but can be set to time intervals such as seconds, see the Usage Section above.
downsample
Sampling rate the object is to be downsampled to.
If NA
, the default, no changes are applied. Otherwise downsample
must be in [2000, 192000]
;
typical values are 11025, 22050, and 44100 for CD quali
channel
Character, indicating whether the left or right channel should be extracted
(see mono
for details) - stereo processing is not yet implemented. pieces
The Wave file will be read in in pieces
steps in order to reduce the amount
of required memory.
...
Further arguments to be passed to the underlying function spec.pgram
.