docstr: test that dct(arange(8)) is computed correctly
  
  >>> from scipy.fftpack import dct
  >>> a_in = np.arange(8).astype(aubio.float_type)
  >>> precomputed = dct(a_in, norm='ortho')
docstr_tok: ["test","that","dct","(","arange","(","8",")",")","is","computed","correctly",">",">",">","from","scipy.fftpack","import","dct",">",">",">","a_in","=","np.arange","(","8",")",".astype","(","aubio.float_type",")",">",">",">","precomputed","=","dct","(","a_in",",","norm='ortho","'",")"]
code: def test_arange(self):
      """test that dct(arange(8)) is computed correctly
  
      >>> from scipy.fftpack import dct
      >>> a_in = np.arange(8).astype(aubio.float_type)
      >>> precomputed = dct(a_in, norm='ortho')
      """
      N = len(precomputed_arange)
      a_dct = aubio.dct(8)
      a_in = np.arange(8).astype(aubio.float_type)
      a_expected = aubio.fvec(precomputed_arange)
      assert_almost_equal(a_dct(a_in), a_expected, decimal=5)
  
file_path: aubio/python/tests/test_dct.py
imports: import numpy
  from numpy.testing import TestCase, assert_almost_equal
  import aubio
label_desc: Use image node_id 2 for calling the aubio_dct obj's underlying member method code with example usage: obj.test_arange() without return types