Skip to content

Instantly share code, notes, and snippets.

@cdrnet
Created February 17, 2011 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdrnet/832569 to your computer and use it in GitHub Desktop.
Save cdrnet/832569 to your computer and use it in GitHub Desktop.
Math.NET Numerics Code Samples: Integral Transforms: FFT
// create a complex sample vector of length 96
Complex[] samples = Sample.EquidistantInterval(
t => new Complex(1.0 / (t * t + 1.0), t / (t * t + 1.0)),
-16, 16, 96);
// inplace bluestein FFT with default options
Transform.FourierForward(samples);
@ShannonZ
Copy link

ShannonZ commented Sep 7, 2017

Then we should do fftshift ourselves? or there are some mature routines in Math.Net?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment