When you use waver to create tent functions with a dt != 1,
it appears that the full tent function is computed and then
it is sampled every dt points starting at 0.
If dt is non-integer, then a linear interpolation of the
two points surrounding each sample location is performed.
Unless, dt goes evenly into the tent half-width (denominator of
tent function), then the output isn't a tent.
Here is an example with a dt of 1:
waver -dt 1.0 -EXPR 'tent((t-5)/5)' -peak 0 -tstim 0
0 + *
0.2
0.4 +
0.6 *
0.8 +
1
0.8 + *
0.6
0.4 +
0.2 *
0 +
the '+' shows the tent you would get with a dt of 2 (0, .4, .8, .8, .4, 0) and
the '*' show the tent you would get with a dt of 3 (0, .6, .8, .2)
John
------------------------------------------
Posted to Phorum via PhorumMail