Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

FFT Amplitude issue

$
0
0

Hi,
I try to convert simple sine wave from time domain to frequency domain.the issue is, Amplitude is not same.

here is my configuration
i am using Math.Net.numeric ver.4.12.0.0
Signal Length 1024
Sample Rate 512
Signal Frequency 10
Amplitude 1

here is my code

var points = Generate.Sinusoidal(1024, 512, 10, 1);

for (int i = 0; i < points .Length; i++)
{
chart1.Series[“Series1”].Points.AddXY
(i,points [i]);

}
Fourier.Forward(points ,FourierOptions.Default);

for (int i = 0; i < points .Length; i++)
{
chart2.Series[“Series1”].Points.AddXY
(i, points [i].Magnitude);

}

on top chart i have amplitude 1 while in bottom chart i have 16.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles