View source: R/FourierAnalysis.R
FourierAnalysis | R Documentation |
Fourier Analysis with a window function equal to 4 times the time series
FourierAnalysis(Y,
SamplingRate,AdjustWindow=FALSE, na.rm = FALSE, PlotIt = FALSE)
Y |
numerical vector [1:N] of time series |
SamplingRate |
Optional, used if specific frequencies should be given back instead of 1:Nqist frequency |
AdjustWindow |
FALSE: Window is time series, make sure that its periodic and detrended. TRUE: see details, time series does not have to be periodic |
na.rm |
easy and maybe incorrect imputation of |
PlotIt |
TRUE: Plots frequency domain |
Fourier Analysis in case of a discrete finite signal defined by a time series.
AdjusteWindow=TRUE
:
The DC part is not given back due to the choice of window. The first frequency is "artificial" because it results directly from the window function and thus is also not given back.
A list with
PowerSpectrum |
Description of 'comp1' |
FFT |
see |
ggObject |
object of |
Michael C. Thrun
Lectures of MCT
FastFourierTransformation
data("ElectricityBRD")
#days,hours,mins,secs
SamplingRateInSecs=30.5*24*60*60
FA=FourierAnalysis(ElectricityBRD$Mrd_KWh,
SamplingRate=1/SamplingRateInSecs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.