DADiSP Worksheet Functions > Function Categories > Query Functions > XOFFSET
Returns the x offset of a series or table.
XOFFSET(series)
series |
- |
Optional. A series or table. Defaults to the current Window. |
A real.
xoffset(gsin(20,.05))
returns 0.0, the offset of the series.
W1: gsin(20, .05)
W2: extract(w1, -10, -1)
xoffset(w2)
returns –0.55, the offset produced by extracting the data prior to the first sample.
When referencing a table, XOFFSET returns the x offset of the first column in the table.
Many series have X values that are monotonically rising by a constant X increment such that:
A series with X values of this form is referred to as an interval series. Because any X value from an interval series can be computed with:
an interval series requires only the DELTAX and XOFFSET values to determine the X values. Thus, for an interval series, explicit X values are not necessary, decreasing the data storage requirements by a factor of 2. Also, because the X values for an interval series are regularly monotonic, speed optimizations for plotting and computations are available.
See XY to create a series with irregularly spaced X values.