Accord.Tests.Math.MatrixTest.MeshTest3 C# (CSharp) Method

MeshTest3() private method

private MeshTest3 ( ) : void
return void
        public void MeshTest3()
        {
            // The Mesh method can be used to generate all
            // possible (x,y) pairs between two ranges. 

            // We can create a grid as
            double[][] grid = Matrix.Mesh
            (
                rowMin: 0, rowMax: 1, rowStepSize: 0.3,
                colMin: 0, colMax: 1, colStepSize: 0.1
            );

            // Now we can plot the points on-screen
            // Accord.Controls.ScatterplotBox.Show("Grid (step size)", grid).Hold();

            Assert.AreEqual(55, grid.Length);
        }
MatrixTest