Beispiel #1
0
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Holger Nahrstaedt
from __future__ import division, print_function, absolute_import

import os
import numpy as np

import sys
import unittest
import pyyawt


F_coif3 = pyyawt.coifwavf('coif3')
F_db2 = pyyawt.dbwavf('db2')
Beispiel #2
0
 def test_sumOdd(self):
     for N in np.arange(1, 18):
         w = pyyawt.coifwavf("coif" + str(N))
         np.testing.assert_almost_equal(np.sum(w[1::2]),
                                        1. / np.sqrt(2),
                                        decimal=self.accuracy_decimal)
Beispiel #3
0
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Holger Nahrstaedt
from __future__ import division, print_function, absolute_import

import os
import numpy as np

import sys
import unittest
import pyyawt

F_coif3 = pyyawt.coifwavf('coif3')
F_db2 = pyyawt.dbwavf('db2')
Beispiel #4
0
    def test_coifwavf(self):
        F = pyyawt.coifwavf("coif1")
        F_req = np.array([- 0.0727326, 0.3378977, 0.8525720, 0.3848648, -0.0727326, -0.0156557])

        np.testing.assert_almost_equal(F,F_req)