View source: R/fcwtr_scalogram.R
as.data.frame.fcwtr_scalogram | R Documentation |
Internally, the scalogram resulting from fcwt()
is represented by
a numeric matrix. This method coerces this matrix into a reasonable
data frame. Note that this conversion has a significant run time cost.
## S3 method for class 'fcwtr_scalogram'
as.data.frame(x, ...)
x |
An object resulting from |
... |
additional arguments to be passed to or from methods. |
A data.frame()
object representing the scalogram data with four columns:
An integer index uniquely identifying time slices.
The time difference to the first time slice in physical units.
The time unit is the inverse of the frequency unit chosen by the user
for the sample_freq
argument of fcwt()
.
The frequency in the same units as the sample_freq
argument
of fcwt()
.
The fCWT result for the particular time-frequency combination.
fcwt(
sin((1:5000) * 2 * pi * 440 / 44100),
sample_freq = 44100,
n_freqs = 10
) |>
as.data.frame() |>
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.