Skip to content

Commit

Permalink
Renamed to fulfill the text in the exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjovanovic committed May 1, 2012
1 parent 6e822a2 commit 83b9949
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 3.5/e-3.76.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
(define (average x y)
(/ (+ x y) 2))

(define (average-stream input-stream)
(define (smooth input-stream)
(stream-map average input-stream (stream-cdr input-stream)))

(define (make-zero-crossings input-stream)
(stream-map sign-change-detector input-stream (stream-cdr input-stream)))

(define zero-crossings
(make-zero-crossings (average-stream sensor-stream)))
(define zero-crossings (make-zero-crossings (smooth sensor-stream)))

0 comments on commit 83b9949

Please sign in to comment.