Пример #1
0
    def test0(self):
        se_model = SteeringEntropyModel()
        b, a = se_model._build_lpfilter(60)

        rb = np.array([-0.13360409 + 0.j])
        ra = np.array([
            1.00000000 + 0.00000000e+00j, -2.16362300 + 0.00000000e+00j,
            2.34063224 + 0.00000000e+00j, -1.56493800 + 0.00000000e+00j,
            0.64665620 - 1.33112026e-16j, -0.13360409 + 2.22495512e-17j
        ])

        assert_array_almost_equal(rb, b)
        assert_array_almost_equal(ra, a)
Пример #2
0
    def test0(self):
        se_model = SteeringEntropyModel()
        b,a = se_model._build_lpfilter(60)

        rb = np.array([-0.13360409+0.j])
        ra = np.array([ 1.00000000 +0.00000000e+00j,
                       -2.16362300 +0.00000000e+00j,
                        2.34063224 +0.00000000e+00j,
                       -1.56493800 +0.00000000e+00j,
                        0.64665620 -1.33112026e-16j,
                       -0.13360409 +2.22495512e-17j])
                   
        assert_array_almost_equal(rb, b)
        assert_array_almost_equal(ra, a)