Skip to content
Snippets Groups Projects
Commit 406ee8d4 authored by Andrey Aristov's avatar Andrey Aristov
Browse files

fir erf

parent 3c62b5af
No related branches found
No related tags found
1 merge request!5fix testing and stuff
Pipeline #66989 failed
Source diff could not be displayed: it is too large. Options to address this: view the blob.
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from scipy.optimize import curve_fit from scipy.optimize import curve_fit
from scipy.special import lambertw from scipy.special import erf
import pandas as pd import pandas as pd
import seaborn as sns import seaborn as sns
...@@ -265,6 +265,8 @@ def sigmoid(x, a, b): ...@@ -265,6 +265,8 @@ def sigmoid(x, a, b):
def hill(x, n, K): def hill(x, n, K):
return x ** n/(x ** n + K) return x ** n/(x ** n + K)
def erf_fun(x, a, b):
return ((1 + erf(a * (x - b))) / 2)
def fit_sigmoid(probs, ax, fun=sigmoid, fit_name='sigmoid', p0=(2., -2.)): def fit_sigmoid(probs, ax, fun=sigmoid, fit_name='sigmoid', p0=(2., -2.)):
probs = probs.copy() probs = probs.copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment