Tektronix TVS600 & TVS600A Series Computer Accessories User Manual


 
Appendix C: Algorithms
C–18
TVS600 & TVS600A Command Reference
Smooth Algorithm
The smoothing algorithm used by the waveform analyzer is as follows:
Smooth(w(n)) + (1ńs)
ƪ
ȍ
n)h
m+0
w(m) ) (h * n) w(0)
ƫ
forĂ n t h
Smooth(w(n)) + (1ńs)
ƪ
ȍ
n)h
m+n*h
w(m)
ƫ
for h v n v R-1-h
Smooth(w(n)) + (1ńs)
ƪ
ȍ
R*1
m+n*h
w(m) ) (R-1-n) w(R-1)
ƫ
forĂ n u R-1-h
where:
n
= index into record of data points
w
(
n
)
= input sampled data point
s
= smoothing interval in samples; the second argument
h = half interval: (s – 1)/2 rounded down
R
= record length in points
The smoothed waveform is derived by computing the average value of the
corresponding point of the original waveform and a certain number of points of
the original waveform on either side of the corresponding point. The number of
points on either side is derived from the smoothing interval, which you set with
the command CALC:SMO:POIN.
Near the ends of the waveform, nonexistent points beyond the ends of the
waveform are required for averaging. The nonexistent points are assumed to be
the value of the corresponding end points. This method of extending the
waveform is arbitrary, so the results within a smoothing interval of the ends of
the waveform must be interpreted accordingly.