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