75 G4double B=std::log(y2/y1)/std::log(x2/x1);
98 if (InterPolMethod ==
"Log" ){
101 else if (InterPolMethod ==
"Lin" ){
104 else if (InterPolMethod ==
"Exp" ){
121 size_t ndim = x_vec.size();
123 size_t ind2 = ndim - 1;
135 if (x_vec[0] < x_vec[1] ) {
137 size_t midBin = (ind1 + ind2)/2;
138 if (x < x_vec[midBin])
143 }
while (ind2 - ind1 > 1);
147 size_t midBin = (ind1 + ind2)/2;
148 if (x < x_vec[midBin])
153 }
while (ind2 - ind1 > 1);
194 return Interpolation( x,x_vec[i],x_vec[i+1],y_vec[i],y_vec[i+1],InterPolMethod);
203 if (x>x0) ind=
int((x-x0)/dx);
204 if (ind >= index_vec.size()-1) ind= index_vec.size()-2;
205 size_t ind1 = index_vec[ind];
206 size_t ind2 = index_vec[ind+1];
214 return Interpolation( x,x_vec[ind],x_vec[ind+1],y_vec[ind],y_vec[ind+1],
"Lin");