49 for (i=0; i<nData; i++)
61 x1 = data[i-1].
GetX(std::min(i1, data[i-1].GetVectorLength()-1));
62 x2 = data[i].
GetX(ii);
63 if(x1<x2&&i1<data[i-1].GetVectorLength())
65 y1 = data[i-1].
GetY(i1);
66 y2 = data[i].
GetY(x1);
76 aBuffer->
SetScheme(ib++, data[i-1].GetScheme(i1));
85 y1 = data[i-1].
GetY(x2);
86 y2 = data[i].
GetY(ii);
96 aBuffer->
SetScheme(ib++, data[i].GetScheme(ii));
97 if(x1-x2<0.001*x2) i1++;
106 for (i=0; i<nData; i++)
121 else if ( i == nData )
135 G4int i1=0, i2=0, ii=0;
148 theBuff.
SetScheme(ii, data[low].GetScheme(i1));
149 if(std::abs(
GetX(low,i1)-
GetX(high,i2))<0.001) i2++;
165 theBuff.
SetScheme(ii, data[high].GetScheme(i2));
166 if(std::abs(
GetX(low,i1)-
GetX(high,i2))<0.001) i1++;
G4InterpolationScheme GetScheme(G4int index) const
G4double Interpolate(G4InterpolationScheme aScheme, G4double x, G4double x1, G4double x2, G4double y1, G4double y2) const
G4int GetNEntries(G4int i)
G4double GetY(G4int i, G4int j)
G4double Sample(G4double x)
void SetX(G4int i, G4double e)
G4int GetVectorLength() const
G4double GetX(G4int i) const
void SetScheme(G4int aPoint, const G4InterpolationScheme &aScheme)
G4double GetY(G4double x)
void SetData(G4int i, G4double x, G4double y)
void SetInterpolationManager(const G4InterpolationManager &aManager)
void SetY(G4int i, G4double x)