Appendix C: Algorithms
TVS600 & TVS600A Command Reference
C–17
Differentiation Algorithm
The differentiation algorithm used by the waveform analyzer is as follows:
Diff(w(n)) +Ă 0
forĂ n + 0
Diff(w(n)) + [w(n ) 1) * w(n * 1)] ń(2T)
for 1 v n v (R-1)
Diff(w(n)) + [w(R-1) * w(R-2)]ńT
forĂ n + (R-1)
where:
n
= index into the record of data points
w
(
n
)
= input sampled data point
T
= time interval between successive samples
R
= record length
Integration Algorithm
The integration algorithm used by the waveform analyzer is as follows:
Intg(w(n)) +
ƪ
1/2Ă w(0) )
ȍ
n*1
m+1
w(m) ) 1/2Ă w(n)
ƫ
T
Intg(w(n)) + 0
forĂ n + 0
forĂ 1 v n v R
where:
n
= index into record of data points
w
(
n
)
= input sampled data point
T
= time interval between successive samples
R
= record length in points