Converts index values of a series to Y values.
IDXTOY(series, idx)
series |
- |
An input series |
idx |
- |
An integer or a series of integers. The indices where valid indices range from SPL_START_INDEX (usually 1) to length(s). |
A real or series.
W1: 1..0.1..10
W2: idxtoy(W1, 1..5)
W2 contains the series {1, 1.1, 1.2, 1.3, 1.4}, the first 5 Y values of W1.
Indices start at 1 unless STARTINDEX is invoked or the SPL_START_INDEX configuration parameter is set.
For interval, XY or XYZ series, the indices are looked up and the closest matches are returned.
For 2D interval series, the Y values are computed as follows:
y = (idx - start) * deltay(s) + yoffset(s)
where start is the value of STARTINDEX or SPL_START_INDEX (usually 1).