powered by
It interpolates y value when a corresponding x value (xnew) does not exist within x vector
Interpol(x, y, xnew, Slope, b0, down = "Linear")
new x and y vector containing xnew and ynew point
vector values of x-axis, usually time
vector values of y-axis, usually concentration
new x point to be interpolated, usually new time point
slope of regression log(y) ~ x
y value of just left point of xnew
either of "Linear" or "Log" to indicate the way to interpolate
"Linear"
"Log"
Kyun-Seop Bae <[email protected]>
This function interpolate y value, if xnew is not in x vector. If xnew is in x vector, it just returns the given x and y vector. This function usually is called by IntAUC function. Returned vector is sorted in the order of increasing x values.
IntAUC
x = 10:1 + 0.1 y = -2*x + 40.2 Interpol(x, y, 1.5) Interpol(x, y, 1.5, down="Log")
Run the code above in your browser using DataLab