tftb.tests package

Submodules

tftb.tests.base module

Base class for tests.

class tftb.tests.test_base.TestBase(methodName='runTest')[source]

Bases: unittest.case.TestCase

assert_is_analytic(signal, amlaw=None)[source]

Assert that signal is analytic.

assert_is_concave(signal)[source]
assert_is_convex(signal)[source]
assert_is_hermitian(x)[source]

Assert that the input is a Hermitian matrix.

assert_is_linear(signal, decimals=5)[source]

Assert that the signal is linear.

assert_is_monotonic_decreasing(signal)[source]
assert_is_monotonic_increasing(signal)[source]
assert_tfr_equal(x, y, sqmod=True, threshold=0.05, tol=0.99)[source]

Assert that TFRs x and y are qualitatively equivalent.

tftb.tests.test_utils module

Tests for tftb.utils

class tftb.tests.test_utils.TestUtils(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_divider()[source]

Test the divider function.

test_is_linear()[source]

Test the is_linear function.

test_modulo()[source]

Test the modulo function.

test_nearest_odd()[source]

Test the nearest_odd function.

test_nextpow2()[source]

Test the nextpow2 function.

Module contents