Beginners Interactive NetLogo Dictionary (BIND)
Farsi / Persian
NetLogo Models Library:
This code example shows you how to plot a "smoothed" version of a jagged line. When you run the model, the black line is the original line, and the blue line is the smoothed version.
The amount of smoothing is controlled by the SMOOTHNESS slider.
The black line is generated by doing a one-dimensional random walk.
The very simple method used to do smoothing causes the smoothed line to lag a bit behind the original line, that is, it appear shifted to the right.
Thanks to Ed Hazzard for suggesting this example.