Re: [sicp-vsg] ex 3.75
- On 11/14/05, Ioura Batugowski <ibatugow@...> wrote:
> The average is passed on as last-value, so it's not the average of theThanks very much. I'm a little annoyed that I didn't spot that. Ah well.
> last two values but is influenced by all previous values (with
> exponentially decreasing contribution the older the value is). One
> would fix it by passing (stream-car input-stream) instead of avpt as
> last-value, but then the last-value used in the sign change detector
> isn't smoothed. So we must pass both (stream-car input-stream) and
> avpt to make-zero-crossings.