Add workflow for publishing
3.1 KiB
AMBER documentation
This is the documentation for the A lgorithm for M ultiplexing spectrometer B ackground E stimation with R otation-independence AMBER which is a method to estimate and background within 3D data sets.
This software is the result of the collaboration between the instrument responsible at the CAMEA beamline at SINQ, at the Paul Scherrer Institut with the Swiss Data Science Center through the "Data Science for Multiplexing Spectrometers" (DS4MS) project supported by the fifth call for Collaborative Research Data Science Projects.
Badges
Installation
Installation can be done through PyPI using
python -m pip install AMBER-ds4ms
Alternatively, the newest version can be installed directly from the source repository through
python -m pip install git+https://gitea.psi.ch/lass_j/AMBER.git@main
General Introduction
AMBER has been developed with multiplexing neutron spectrometers in mind, i.e. a novel version of the triple axis instrument which acquires multiple data points simultaneously. However, the algorithm is more general and can be utilized on data with other origins.
The main requirements of the data are
- Rotation independence of the background in two out of three directions.
- Smooth change of background along all directions
- The signal is sparse but continuous in all directions
AMBER minimizes the following cost function for the signal and background given the set of parameters λ, β, and μ on a voxelated data set:
$$\min_{X,b} \frac{1}{2}\lVert Y-X-\mathcal{R}b\rVert_{2}^2+\lambda\vert| X |\vert_{1} +\frac{\beta}{2} \mathrm{Tr} \left( b^T L_{b} b \right) +\frac{\mu}{2} \boldsymbol{1}_{n_x}^TX^T L_{\omega} X\boldsymbol{1}_{n_y}$$
where Y, X, and b are the measured signal, the subtracted signal and the rotation independent background, respectively. ℛ is a rotation operator taking the radial b to the full space. These three parameters constitute the fitting term while the rest are denoted penalty terms. λ controls the weighing of sparcity of the subtracted signal gauge through the L-1 norm ||X||1, β controls the smoothness of the background while μ the smoothness of the subtracted signal.
For further details, see the the paper.
Documentation & Tutorials
For AMBER the following tutorials have been created
tutorials/index.rst