Accord.Tests.Math.BinarySearchTest.BinarySearchTest C# (CSharp) Method

BinarySearchTest() public method

public BinarySearchTest ( ) : Accord.Math.Optimization
return Accord.Math.Optimization
        public BinarySearchTest()
        {
            elements = new double[] { 5.2, 2.7, 8, 6.1, 21, 9, -1, 2, 0 };
            idx = Matrix.Indices(0, elements.Length);

            Array.Sort(elements, idx);
        }