Accord.Tests.Statistics.GaussianLinearTest.FunctionTest_EqualInputs C# (CSharp) Method

FunctionTest_EqualInputs() private method

private FunctionTest_EqualInputs ( ) : void
return void
        public void FunctionTest_EqualInputs()
        {
            var x = new double[] { 1, 2, 5, 1 };
            var y = new double[] { 1, 2, 5, 1 };

            var target = new Gaussian<Linear>(new Linear(1), 4.2);

            double expected = target.Function(x, y);
            double actual = target.Function(x, x);

            Assert.AreEqual(expected, actual);
        }
    }