Hyperiso
1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Interpolator.h
Go to the documentation of this file.
1
#include "
Utils.h
"
2
3
class
Interpolator
{
4
public
:
5
static
complex_t
linearInterpolation
(
double
Q1,
double
Q2,
double
Q_target,
complex_t
C1
,
complex_t
C2
) {
6
if
(Q1 == Q2) {
7
std::cout <<
"Exact match found: Q1 == Q2 == "
<< Q1 <<
". Returning C1."
<< std::endl;
8
return
C1
;
9
}
10
11
double
t = (Q_target - Q1) / (Q2 - Q1);
12
return
C1
+ t * (
C2
-
C1
);
13
}
14
};
Utils.h
complex_t
std::complex< double > complex_t
Convenience alias for std::complex<double>.
Definition
Utils.h:35
C1
Definition
BWilson.h:6
C2
Definition
BWilson.h:20
Interpolator
Definition
Interpolator.h:3
Interpolator::linearInterpolation
static complex_t linearInterpolation(double Q1, double Q2, double Q_target, complex_t C1, complex_t C2)
Definition
Interpolator.h:5
Hyperiso
core
src
PhysicalModel
app
Interpolator.h
Generated by
1.9.8