Files
AMBER/source/index.rst
Jakob Lass b135aa16e7 Move badges
Add contribution
Add contact
Move tutorials higher up
2025-04-14 09:29:41 +02:00

3.8 KiB
Raw Blame History

AMBER documentation

Test Status

Read the Docs

PyPI - Version

PyPI - Python Version

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.

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

Documentation & Tutorials

For AMBER the following tutorials have been created

tutorials/index.rst

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

  1. Rotation independence of the background in two out of three directions.
  2. Smooth change of background along all directions
  3. 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.

Contribute

This project is more than happy for contribution to the code base. However, it is recommended that before a large commitment and/pull request is made, please do contact the maintainers or open an issue.

Contact

Contact to the maintainers is recommended through either an issue or by sending an email to the maintainers.