public void TestSax() { float[,] tss = { { 0.0F, 0.1F, -0.1F, 5.0F, 6.0F }, { 7.0F, 8.1F, 9.0F, 9.0F, 9.0F } }; using (KhivaArray arr = KhivaArray.Create(tss), sax = Dimensionality.SAX(arr, 3)) { float[,] expected = { { 0.0F, 0.1F, -0.1F, 5.0F, 6.0F }, { 0.0F, 1.0F, 2.0F, 2.0F, 2.0F } }; var saxArr = sax.GetData2D <float>(); Assert.AreEqual(expected, saxArr); } }