# Bumps documentation

## names - External interface

Exported names.

Usage:

> import bumps.names as bp … bp.FitProblem(experiment)

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

Math functions:

- math constants: inf, pi, e

- exponentials: exp, log, log10, sqrt

- degrees, radians

- radians trig: sin, cos, tan, arcsin, arccos, arctan, arctan2

- degrees trig: sind, cosd, tand, arcsind, arccosd, arctand, arctan2d

- hyperbolic trig: sinh, cosh, tanh, arcsinh, arccosh, arctanh

- `pmath` for pmath.min() and pmath.max()

Problem definition functions:

- `Parameter` for defining parameters

- `FreeVariables` for defining shared parameters

- `Distribution` for indicating prior

    probability for a model parameter

- `Curve` for defining models from functions

- `PoissonCurve` for modelling data with Poisson uncertainty

- `PDF` for fitting a probability distribution directly

- `FitProblem` for defining the fit.

Jupyter notebook functions:

- Simple fitter: `bumps.fitters.fit()`, `bumps.fitters.plot_convergence()`

- Webview server: bumps.webview.server.webserver.start_bumps, bumps.webview.server.webserver.display_bumps

- MCMC save/load: `bumps.fitters.load_session()`, `bumps.fitters.load_fit_from_session()`, `bumps.fitters.load_fit_from_export()`