Files
AMBER/source/index.rst
Jakob Lass c5f395b846
Some checks failed
Release workflow / single_test (3.13.3) (push) Successful in 10s
Gitea Actions Demo / build_test (3.13.3) (push) Successful in 9s
Release workflow / Build wheels for PyPI (push) Failing after 2s
Release workflow / Upload release to PyPI (push) Has been skipped
Gitea Actions Demo / release-test (push) Successful in 2s
Update naming for package on PyPI
Add workflow for publishing
2025-04-11 15:32:10 +02:00

3.1 KiB
Raw Blame History

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

Test Status

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

  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.

Documentation & Tutorials

For AMBER the following tutorials have been created

tutorials/index.rst

Contribute

Contact