Test for logistic fit and minor fix to fit func
This commit is contained in:
parent
b192a2a76f
commit
25e001e855
3 changed files with 13 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue