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

@ -24,7 +24,7 @@ def fit_r(xs):
it = len(xs) - 1
def error(r):
return np.linalg.norm(xs - iterate_f(it, x0, r))
return np.linalg.norm(xs - iterate_f(x0, r, it))
errors = []
for r in np.linspace(0, 4, 4001):