add test for logistic fit
This commit is contained in:
parent
51eab93255
commit
f8a43a0d47
1 changed files with 9 additions and 0 deletions
9
testing_project/test_logistic_fit.py
Normal file
9
testing_project/test_logistic_fit.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from numpy.testing import assert_allclose
|
||||
import pytest
|
||||
from logistic_fit import fit_r
|
||||
from logistic import iterate_f
|
||||
|
||||
def test_logistic_fit(x0=0.3, r=3.421, it=23):
|
||||
xs = iterate_f(it, x0, r)
|
||||
r_fitted = fit_r(xs)
|
||||
assert_allclose(r, r_fitted)
|
Loading…
Add table
Add a link
Reference in a new issue