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
pmathfor parameter expressions like 2*pmath.sin(M.theta)Parameterfor defining parametersFreeVariablesfor defining shared parametersDistributionfor indicating priorprobability for a model parameter
Curvefor defining models from functionsPoissonCurvefor modelling data with Poisson uncertaintyPDFfor fitting a probability distribution directlyFitProblemfor defining the fit (seeBaseFitProblemorMultiFitProblemfor details, depending on whether you are fitting a single model or multiple models simultaneously).
