Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nd2shrink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrey ARISTOV
nd2shrink
Commits
406ee8d4
Commit
406ee8d4
authored
3 years ago
by
Andrey Aristov
Browse files
Options
Downloads
Patches
Plain Diff
fir erf
parent
3c62b5af
No related branches found
No related tags found
1 merge request
!5
fix testing and stuff
Pipeline
#66989
failed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Multiwell-june-july-2021-probs.ipynb
+147
-2
147 additions, 2 deletions
Multiwell-june-july-2021-probs.ipynb
droplet_growth/fit.py
+3
-1
3 additions, 1 deletion
droplet_growth/fit.py
with
150 additions
and
3 deletions
Multiwell-june-july-2021-probs.ipynb
+
147
−
2
View file @
406ee8d4
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
droplet_growth/fit.py
+
3
−
1
View file @
406ee8d4
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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment