Test for logistic fit and minor fix to fit func

This commit is contained in:
ASPP Student 2025-09-23 18:44:31 +03:00
parent b192a2a76f
commit 25e001e855
3 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,11 @@
from numpy.testing import assert_allclose
from logistic import iterate_f
from logistic_fit import fit_r
def test_fit_r():
r = 3.421
trajectory = iterate_f(0.3, r, 23)
fit_result_r = fit_r(trajectory)
assert_allclose(r, fit_result_r)