#include <G4LinInterpolator.hh>
Definition at line 49 of file G4LinInterpolator.hh.
◆ G4LinInterpolator()
G4LinInterpolator::G4LinInterpolator |
( |
| ) |
|
◆ ~G4LinInterpolator()
G4LinInterpolator::~G4LinInterpolator |
( |
| ) |
|
◆ Calculate()
Implements G4IInterpolator.
Definition at line 53 of file G4LinInterpolator.cc.
56{
57 G4int nBins = data.size() - 1;
59 if (x < points[0])
60 {
61 value = 0.;
62 }
63 else if (bin < nBins)
64 {
69 value = d1 + (d2 - d1)*(x - e1)/(e2 - e1);
70 }
71 else
72 {
73 value = data[nBins];
74 }
75 return value;
76}
◆ Clone()
The documentation for this class was generated from the following files: