Simple_time_domain_vs_frequency_domain.svg


Summary

Description
English: Top:Example of a simple signal, comprised of two sine function. Bottom: The fourier-transformation if the same signal.
Deutsch: Oben: Ein einfaches Beispielsignal, bestehend aus zwei zusammenaddierten Sinusfunktionen.

Unten: Die Fouriertransformierte desselben Signals (vereinfachte Darstellung als kontinuierliche Linie).

Die Fouriertransformierte, wird häufig "im Frequenzraum" oder "das Frequenz-Spektrum" genannt. Für mathematische Zwecke ist es wichtig, die *digital* berechnete Fouriertransformation als solche zu kennzeichnen. Daher spricht man hier häufig bewusst auch von einer DFT oder eben FFT.
Date
Source Own work
Author Accountalive
SVG development
InfoField
The SVG code is valid .
This chart was created with R .
Source code
InfoField

R code

f <- function(x)
{
  noise <- rnorm(1,0,0.05)
  a <-   sin(10*x)     
  b <-2*sin(   x)
  a+b
}

xr <- 20
res <- 10240

x <- seq(0,xr*2*pi,length.out=res)
y <- rep(0, length(x))
for( i in 0:length(x))
{
  y[i] <- f(x[i])
} 

ft <- abs(fft(y))

old.par <- par(mfrow=c(2, 1), yaxt="n", mgp=c(2,1,0), bty='l')

tToIndex = xr/res
tValues = ((1:length(y))-1) * tToIndex
plot(tValues,y,t='l', xlab="Zeit in s", ylab="signal",xlim=c(1,6),main="signal = 2 sin x  +  sin 10x ")

freqToIndex = xr
xvalues = ((1:length(ft))-1) / freqToIndex

plot(xvalues, ft,type='l'
     ,xlim=c(0,11), xlab='Frequenz in Hz', ylab="


Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication .
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Example of a signal and its fourier-transformation, computed via FFT.

Items portrayed in this file

depicts

22 April 2021

image/svg+xml