qinterp
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
qinterp
Lays a parabola through three points around each peak value and calculates the interpolated peak. The result is a one or two row vector or matrix.
Usage:
qinterp(x, y, ipeak, nwidth)
Parameters:
- x
- The number for x[i] = i*number or the x-scale vector.
- y
- The data vector (function).
- ipeak
- The indices of the peak values or the center of the interpolation.
- nwidth
- The width of the interpolation. The default is
1
.
Return Type:
vector or matrix
Result:
row 1 = xpeak[]
row 2 = ypeak[]