Plot Smoothing Example

Plot Smoothing Example preview image

2 collaborators

Uri_dolphin3 Uri Wilensky (Author)
Default-person Ed Hazzard (Team member)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 238 times • Downloaded 23 times • Run 0 times
Download the 'Plot Smoothing Example' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals [n smoothed]

to setup
  clear-all
  set n 0
  set smoothed 0
  reset-ticks
end 

to go
  ;; the variable N does a random walk
  set n n + one-of [-1 0 1]

  tick

  ;; Here's where we calculate the smoothed version of N.
  ;; This one line is the heart of the whole example.
  set smoothed smoothness * smoothed + (1 - smoothness) * n
end 


; Public Domain:
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.

There are 10 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 9 years ago Updated to NetLogo 5.0.4 Download this version
Uri Wilensky almost 10 years ago Updated version tag Download this version
Uri Wilensky over 10 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 12 years ago Plot Smoothing Example Download this version
Uri Wilensky over 12 years ago Plot Smoothing Example Download this version

Attached files

File Type Description Last updated
Plot Smoothing Example.png preview Preview for 'Plot Smoothing Example' over 9 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.