Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Tools
WeatherCorrections
Tools/WeatherCorrections/Math.h
Go to the documentation of this file.
1
#ifndef _anal_Math_h_
2
#define _anal_Math_h_
3
4
namespace
anal {
5
6
inline
7
double
8
Interpolate
(
const
double
dx,
const
double
dy,
9
const
double
x)
10
{
11
return
dy * x / dx;
12
}
13
14
15
inline
16
double
17
Interpolate
(
const
double
x1,
const
double
y1,
18
const
double
x2,
const
double
y2,
19
const
double
x)
20
{
21
return
y1 +
Interpolate
(x2 - x1, y2 - y1, x - x1);
22
}
23
24
}
25
26
27
#endif
anal::Interpolate
double Interpolate(const double dx, const double dy, const double x)
Definition:
Tools/WeatherCorrections/Math.h:8
, generated on Tue Sep 26 2023.