コード例 #1
0
ファイル: FFT.cs プロジェクト: zhangbo27/mathnet-numerics
        public FFT()
        {
            var realSinusoidal = Generate.Sinusoidal(65536, 32, -2.0, 2.0);
            var imagSawtooth   = Generate.Sawtooth(65536, 32, -20.0, 20.0);
            var signal         = Generate.Map2(realSinusoidal, imagSawtooth, (r, i) => new Complex(r, i));

            foreach (var n in new[] { 32, 64, 128, 1024, 8192, 65536 })
            {
                var s = new Complex[n];
                Array.Copy(signal, 0, s, 0, n);
                _data[n] = s;
            }

            Providers.ForceNativeMKL();
        }