def test_idctn_vs_2d_reference(self, funcn, func, dct_type, norm):
     fdata = dctn(self.data, type=dct_type, norm=norm)
     y1 = funcn(fdata, type=dct_type, norm=norm)
     y2 = ref_2d(func, fdata, type=dct_type, norm=norm)
     assert_array_almost_equal(y1, y2, decimal=11)
Exemple #2
0
 def test_idctn_vs_2d_reference(self, finverse, finverse_ref,
                                dct_type, norm):
     fdata = dctn(self.data, type=dct_type, norm=norm)
     y1 = finverse(fdata, type=dct_type, norm=norm)
     y2 = finverse_ref(fdata, type=dct_type, norm=norm)
     assert_array_almost_equal(y1, y2, decimal=11)