Generates a series of steps heights.
GSTEPS(heights, lengths, dx)
heights |
- |
A series, the height of each step segment. |
lengths |
- |
A series or integer, the length of each step segment. |
dx |
- |
Optional. A real, the spacing (delta x) between data points. Defaults to 1.0. |
A series, a sequence of step heights.
gsteps({1, 3, 2}, 100)
Generates a 300 point series where the first 100 points have a value of 1, the second 100 points have a value of 3 and the final 100 points have a value of 2.
gsteps({1, 3, 2}, 100, 0.5)
Same as above except the resulting delta x value is 0.5.
gsteps({1, 3, 2}, {10, 20, 15})
Generates a 45 point series where the first 10 points have a value of 1, the second 20 points have a value of 3 and the final 15 points have a value of 2.
gsteps({1, 3, 2}, {10, 20, 15}, 0.5)
Same as above except the resulting delta x value is 0.5.
The lengths series determines the length of each step segment. If lengths is an integer, the length of each step sequence will be equal to lengths.
If the length of lengths is less than the length of heights, the last lengths value will be used for the length of subsequent steps.