ATLAS Offline Software
|
Utilities. More...
Functions | |
float | Interpolate (const float &xval, const std::vector< float > &xtabulated, const std::vector< float > &ytabulated) |
Interpolation function. More... | |
float | calculate_interpolation (const float &xval, const float &x1, const float &x2, const float &y1, const float &y2) |
Utilities.
float TRT_PAI_utils::Interpolate | ( | const float & | xval, |
const std::vector< float > & | xtabulated, | ||
const std::vector< float > & | ytabulated | ||
) |
Interpolation function.
From tabulated values of y vs x, it returns the interpolated y value corresponding to the input x value.
xval | x value for which we seek y value |
xtabulated | tabulated x values |
ytabulated | tabulated y values |
Definition at line 14 of file TRT_PAI_utils.cxx.