Exemplo n.º 1
0
        public void ComputeFftDuringSignalForTwoSignals_BasicTests_GetCorectResult()
        {
            double        fs       = 30;
            List <double> vector1  = Enumerable.Range(0, 256).Select(x => (double)x).ToList();
            List <double> vector2  = Enumerable.Range(5, 256).Select(x => (double)x).ToList();
            List <double> expected = new List <double>();
            List <double> vys      = Fft.ComputeFftDuringSignalForTwoSignals(fs, vector1, vector2, 256, 1, false);

            for (int i = 0; i < 1040; i++)
            {
                expected.Add(7);
            }
            Assert.Equal(expected, vys);
        }