Skip to content

Instantly share code, notes, and snippets.

@santiagocasas
Last active March 15, 2020 14:28
Show Gist options
  • Save santiagocasas/85f79a3fb9d06ad1384f948645cc33f8 to your computer and use it in GitHub Desktop.
Save santiagocasas/85f79a3fb9d06ad1384f948645cc33f8 to your computer and use it in GitHub Desktop.
models
def expo_model(x,p,N0=3,x0=1):
return N0*(1+p)**(x-x0)
def logistic_model(x,a,b,c):
return c/(1+np.exp(-(x-b)/a))
def gompertz_model(x,a,b,c):
return c*np.exp(-b*np.exp(-x/a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment