Package PyDSTool :: Package Toolbox :: Module model_primitives
[hide private]
[frames] | no frames]

Module model_primitives

source code

Library of common model equation primitives.

Contains functions, expressions, etc.

Variables [hide private]
  threshold = ModelLibrary('threshold', spectype= Fun, pars= {'k...
  tanh_spec = Fun('1+tanh(x/k)', ['x'], 'tanh_thresh')
  logistic_spec = Fun('1/(1+exp(-k*x))', ['x'], 'logistic_thresh')
  alg_spec = Fun('0.5*(1+x/(sqrt(k+x*x)))', ['x'], 'algebraic_th...
  linear_decay = ModelLibrary('linear_decay', spectype= Fun, par...
Variables Details [hide private]

threshold

Value:
ModelLibrary('threshold', spectype= Fun, pars= {'k': [-inf, inf]}, ind\
epdomain= {'x': [-inf, inf]}, depdomain= [0, 1], description= """Smoot\
h R -> [0,1] functions of
                        one parameter that represent thresholds""")

alg_spec

Value:
Fun('0.5*(1+x/(sqrt(k+x*x)))', ['x'], 'algebraic_thresh')

linear_decay

Value:
ModelLibrary('linear_decay', spectype= Fun, pars= {'tau': [0, inf], 'x\
_inf': [-inf, inf]}, indepdomain= {'x': [-inf, inf]}, depdomain= [-inf\
, inf], description= """Linear decay given by two
                            parameters""")