|
ATLAS Offline Software
|
|
constexpr double | coeff (unsigned int l, unsigned int k) |
| Calculates the n-th coefficient of the legendre polynomial series. More...
|
|
template<unsigned int l, unsigned int k> |
constexpr double | polySum (const double x) |
| Assembles the sum of the legendre monomials. More...
|
|
template<unsigned int l, unsigned int k, unsigned int d> |
constexpr double | derivativeSum (const double x) |
| Assembles the n-th derivative of the legendre polynomial. More...
|
|
template<unsigned int l> |
constexpr double | poly (const double x) |
|
template<unsigned int l, unsigned d> |
constexpr double | derivative (const double x) |
|
◆ coeff()
constexpr double MuonCalib::Legendre::coeff |
( |
unsigned int |
l, |
|
|
unsigned int |
k |
|
) |
| |
|
constexpr |
Calculates the n-th coefficient of the legendre polynomial series.
- Parameters
-
l | Order of the legendre polynomial |
k | Coefficient of the polynomial representation |
Definition at line 73 of file LegendrePoly.h.
77 const double a_k = -(1.*(
l-
k +2)*(
l+
k-1)) / (1.*(
k * (
k-1))) *
coeff(
l,
k-2);
80 unsigned fl = (
l -
l %2) /2;
◆ derivative()
template<unsigned int l, unsigned d>
constexpr double MuonCalib::Legendre::derivative |
( |
const double |
x | ) |
|
|
constexpr |
◆ derivativeSum()
template<unsigned int l, unsigned int k, unsigned int d>
constexpr double MuonCalib::Legendre::derivativeSum |
( |
const double |
x | ) |
|
|
constexpr |
Assembles the n-th derivative of the legendre polynomial.
- Parameters
-
l | Order of the legendre polynomial |
k | Term in the polynomial to add to the sum |
k | Order of the derivative |
x | Dependency of the polynomial |
Definition at line 104 of file LegendrePoly.h.
106 if constexpr(k <= l && k>=
d) {
108 const double a_n =
coeff(
l,
k) * powFac;
◆ poly()
template<unsigned int l>
constexpr double MuonCalib::Legendre::poly |
( |
const double |
x | ) |
|
|
constexpr |
◆ polySum()
template<unsigned int l, unsigned int k>
constexpr double MuonCalib::Legendre::polySum |
( |
const double |
x | ) |
|
|
constexpr |
Assembles the sum of the legendre monomials.
- Parameters
-
l | Order of the legendre polynomial |
k | Term in the polynomial to add to the sum |
x | Dependency of the polynomial |
Definition at line 90 of file LegendrePoly.h.
92 if constexpr (
k > 1) {
constexpr double derivativeSum(const double x)
Assembles the n-th derivative of the legendre polynomial.
double binom(int n, int k)
constexpr double polySum(const double x)
Assembles the sum of the legendre monomials.
constexpr unsigned long binomial(unsigned int n, unsigned k)
Calculates the binomial coefficient at compile time.
constexpr double coeff(unsigned int l, unsigned int k)
Calculates the n-th coefficient of the legendre polynomial series.
constexpr unsigned long factorial(int n)
Evaluated the n-th factorial at compile time.