names - External interface¶
Exported names.
In model definition scripts, rather than importing symbols one by one, you can simply perform:
from bumps.names import *
This is bad style for library and applications but convenient for model scripts.
The following symbols are defined:
- np for the numpy array package
- sys for the python sys module
- inf for infinity
pmath
for parameter expressions like 2*pmath.sin(M.theta)Parameter
for defining parametersFreeVariables
for defining shared parametersDistribution
for indicating prior- probability for a model parameter
Curve
for defining models from functionsPoissonCurve
for modelling data with Poisson uncertaintyPDF
for fitting a probability distribution directlyFitProblem
for defining the fit (seeBaseFitProblem
orMultiFitProblem
for details, depending on whether you are fitting a single model or multiple models simultaneously).