![]() |
APFEL 4.8.0
A PDF evolution library in C++
|
The Observable class encapsulates sets of operators and sets of T-type objects for an easy computation of observables deriving from the convolution of the two. This class can contain an arbitrary number of such pairs that are separatately convoluted and joint when the obeservable is computed by means of the "Evaluate" function. More...
#include <observable.h>
Classes | |
struct | ConvolutionPair |
This structure contains a pair of sets of coefficient functions and of objects. More... | |
Public Member Functions | |
Observable () | |
The Observable empty constructor. | |
Observable (std::vector< ConvolutionPair > ConvPair) | |
The Observable constructor. | |
Observable (std::function< Set< Operator >(double const &)> const &CoefficientFunctions, std::function< Set< T >(double const &)> const &Objects) | |
The Observable constructor. | |
void | AddConvolutionPair (std::function< Set< Operator >(double const &)> const &CoefficientFunctions, std::function< Set< T >(double const &)> const &Objects) |
Function to add a convolution pair. | |
void | SetObjects (std::function< Set< T >(double const &)> const &Objects, int const &ip=0) |
Set the set of ditributions keeping the same set of coefficient functions. | |
std::function< Set< Operator >(double const &)> | GetCoefficientFunctions (int const &ip=0) const |
Get the set of coefficient functions. | |
Functions that evaluate the the observable at the scale | |
Q. | |
T | Evaluate (double const &Q) const |
This function returns the observable as a distribution. | |
double | Evaluate (double const &x, double const &Q) const |
This function returns the observable in Q interpolated in x. | |
Private Attributes | |
std::vector< ConvolutionPair > | _ConvPair |
The Observable class encapsulates sets of operators and sets of T-type objects for an easy computation of observables deriving from the convolution of the two. This class can contain an arbitrary number of such pairs that are separatately convoluted and joint when the obeservable is computed by means of the "Evaluate" function.
apfel::Observable< T >::Observable | ( | ) |
The Observable empty constructor.
apfel::Observable< T >::Observable | ( | std::vector< ConvolutionPair > | ConvPair | ) |
The Observable constructor.
ConvPair | a vector of ConvolutionPair structures containing pairs of Set<Operator>-valued and Set<T>-valued functions |
apfel::Observable< T >::Observable | ( | std::function< Set< Operator >(double const &)> const & | CoefficientFunctions, |
std::function< Set< T >(double const &)> const & | Objects ) |
The Observable constructor.
CoefficientFunctions | a Set<Operator>-valued function returning the operators |
Objects | a Set<T>-valued function returning the relevant object |
void apfel::Observable< T >::AddConvolutionPair | ( | std::function< Set< Operator >(double const &)> const & | CoefficientFunctions, |
std::function< Set< T >(double const &)> const & | Objects ) |
Function to add a convolution pair.
CoefficientFunctions | a Set<Operator>-valued function returning the operators |
Objects | a Set<T>-valued function returning the relevant object |
T apfel::Observable< T >::Evaluate | ( | double const & | Q | ) | const |
This function returns the observable as a distribution.
Q | the scale where the observable has to be evaluated |
double apfel::Observable< T >::Evaluate | ( | double const & | x, |
double const & | Q ) const |
This function returns the observable in Q interpolated in x.
x | the value to be interpolate on the x-space grid |
Q | the scale where the observable has to be evaluated |
std::function< Set< Operator >(double const &)> apfel::Observable< T >::GetCoefficientFunctions | ( | int const & | ip = 0 | ) | const |
Get the set of coefficient functions.
ip | index of the convolution-pair vector (default: 0) |
void apfel::Observable< T >::SetObjects | ( | std::function< Set< T >(double const &)> const & | Objects, |
int const & | ip = 0 ) |
Set the set of ditributions keeping the same set of coefficient functions.
Objects | the new set of objects |
ip | index of the convolution-pair vector (default: 0) |
|
private |