Expand description
Amplitudes and methods for making and evaluating them.
Structs§
- AmplitudeID
- A tag which refers to a registered
Amplitude. This is the base object which can be used to buildExpressions and should be obtained from theManager::registermethod. - Amplitude
Values - A helper struct that contains the value of each amplitude for a particular event
- Evaluator
- A structure which can be used to evaluate the stored
Expressionbuilt on registeredAmplitudes. This contains aResourcesstruct which already contains cached values for precomputedAmplitudes and any relevant free parameters and constants. - Gradient
Values - A helper struct that contains the gradient of each amplitude for a particular event
- Manager
- A manager which can be used to register
Amplitudes withResources. This structure is essential to any analysis and should be constructed using theManager::default()method. - Model
- A struct which contains a set of registerd
Amplitudes (inside aManager) and anExpression.
Enums§
- Expression
- An expression tree which contains
AmplitudeIDs and operators over them. - Parameter
Like - An enum containing either a named free parameter or a constant value.
Traits§
- Amplitude
- This is the only required trait for writing new amplitude-like structures for this
crate. Users need only implement the
registermethod to register parameters, cached values, and the amplitude itself with an inputResourcesstruct and thecomputemethod to actually carry out the calculation.Amplitude-implementors are required to implementCloneand can optionally implement aprecomputemethod to calculate and cache values which do not depend on free parameters.
Functions§
- central_
difference - Utility function to calculate a central finite difference gradient.
- constant
- Shorthand for generating a constant value (which acts like a fixed parameter).
- parameter
- Shorthand for generating a named free parameter.