public void AutoFastNonNormalizedCorrelationTestMethod2()
        {
            FastCorrelation fc             = new FastCorrelation();
            var             expectedOutput = UnitTestUtitlities.LoadSignal("TestingSignals/FastAutoCorrelationNonNormalized_TestCase.ds");

            fc.InputSignal1 = UnitTestUtitlities.LoadSignal("TestingSignals/FastAutoCorrelation.ds");
            fc.Run();
            Assert.IsTrue(UnitTestUtitlities.SignalsSamplesAreEqual(expectedOutput.Samples, fc.OutputNonNormalizedCorrelation));
        }
        public void AutoFastNonNormalizedCorrelationTestMethod1()
        {
            FastCorrelation fc = new FastCorrelation();

            var expectedOutput = new Signal(new List <float>()
            {
                0.50f, 0.25f, 0.00f, 0.25f
            }, false);

            fc.InputSignal1 = new Signal(new List <float>()
            {
                1, 0, 0, 1
            }, true);

            fc.Run();

            Assert.IsTrue(UnitTestUtitlities.SignalsSamplesAreEqual(expectedOutput.Samples, fc.OutputNonNormalizedCorrelation));
        }
        public void CrossFastNonNormalizedCorrelationTestMethod1()
        {
            FastCorrelation fc = new FastCorrelation();

            var expectedOutput = new Signal(new List <float>()
            {
                17.7500000f, 13.5000000f, 12.5000000f, 15.7500000f
            }, false);

            fc.InputSignal1 = new Signal(new List <float>()
            {
                4, 3, 1, 6
            }, false);
            fc.InputSignal2 = new Signal(new List <float>()
            {
                5, 2, 3, 7
            }, false);

            fc.Run();

            Assert.IsTrue(UnitTestUtitlities.SignalsSamplesAreEqual(expectedOutput.Samples, fc.OutputNonNormalizedCorrelation));
        }
        public void CrossFastNormalizedCorrelationTestMethod1()
        {
            FastCorrelation fc = new FastCorrelation();

            var expectedOutput = new Signal(new List <float>()
            {
                0.9667248f, 0.7352555f, 0.6807921f, 0.8577981f
            }, false);

            fc.InputSignal1 = new Signal(new List <float>()
            {
                4, 3, 1, 6
            }, false);
            fc.InputSignal2 = new Signal(new List <float>()
            {
                5, 2, 3, 7
            }, false);

            fc.Run();

            Assert.IsTrue(UnitTestUtitlities.SignalsSamplesAreEqual(expectedOutput.Samples, fc.OutputNormalizedCorrelation));
        }