Generators for Engineers
A gentle introduction to infinite sequences.
Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
The problem here is that
moving_deviation() are both consuming values from the generator
noisy_sensor. Each will take half the values, and none will be shared.
tee() fixes this.