smooth
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Contents
smooth
Linear smoothing. Apply linear smoothing to the vector x.
Usage:
smooth(x, 0 {, m, s})
Parameters:
- x
- A data vector.
- m
- The smooth length (m
>0
). The default is1
.
- s
- The sample distance (s
>0
). The default is1
.
Result:
A vector y
where:
y[i] = avr(
x[i*
s-
m .. i*
s+
m])