bunch of improvements

This commit is contained in:
2024-06-11 08:50:45 +02:00
parent 376abf628f
commit d8deeedfb6
10 changed files with 65 additions and 21 deletions

View File

@@ -32,3 +32,4 @@ def test_chirp():
c2 = np.unwrap(np.angle(f2))
c2 -= c2.min()
assert pytest.approx(c2, rel=1e-2, abs=1e-4) == t2**2
assert pytest.approx(sc.abs2(f2)) == 16 ** (-((t2 / np.sqrt(2 * np.log(2))) ** 2))