Inserts zeros between every Nth sample for FIR upsampling.
UPSAMPLE(series, n, offset)
series |
- |
Any series, multi-series table, or expression resulting in a series or table. |
n |
- |
An integer factor by which to decimate the series. Inserts |
offset |
- |
Optional. An integer, the starting offset for the insertion. Defaults to 0, start insertion after the first sample. |
A series, the zero inserted series.
W1: 1..5
W2: upsample(W1, 2)
W2 == {1, 0, 2, 0, 3, 0, 4, 0, 5}
rate(w1) == 1
rate(w2) == 2
Increases the sample rate of the series in W1 by a factor of 2 by inserting a zero between every point.
W3: 1..5
W4: upsample(W3, 3)
W4 == {1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5}
rate(w3) == 1
rate(w4) == 3
Increases the sample rate of the series in W3 by a factor of 3 by inserting 2 zeros between every point.
W1: 1..5
W2: upsample(W1, 2, 2)
W2 == {0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5}
rate(w1) == 1
rate(w2) == 3
Increases the sample rate of the series in W1 by a factor of 2 by inserting a zero between every point. Two zeros are prepended to the result.
UPSAMPLE increases the sample RATE of the input series by a factor of N by inserting