@@ -239,35 +239,23 @@ end
239239; Copyright 2007 Uri Wilensky.
240240; See Info tab for full copyright and license.]]> </code >
241241 <widgets >
242- <view x =" 375" wrappingAllowedX =" false" y =" 10" frameRate =" 30.0" minPycor =" -45" height =" 368" showTickCounter =" true" patchSize =" 4.0" fontSize =" 10" wrappingAllowedY =" false" width =" 368" tickCounterLabel =" ticks" maxPycor =" 45" updateMode =" 1" maxPxcor =" 45" minPxcor =" -45" ></view >
243- <plot x =" 5" autoPlotX =" true" yMax =" 1.0" autoPlotY =" true" yAxis =" State" y =" 365" xMin =" 0.0" height =" 120" legend =" false" xMax =" 100.0" yMin =" 0.0" xAxis =" Time" display =" Mean state of language users in the network" width =" 360" sizeVersion =" 0" >
244- <setup ></setup >
245- <update ></update >
246- <pen interval =" 1.0" mode =" 0" display =" default" color =" -16777216" legend =" true" >
247- <setup ></setup >
248- <update >plot mean [state] of nodes</update >
249- </pen >
250- </plot >
251- <button x =" 10" y =" 10" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" setup" width =" 95" sizeVersion =" 0" >setup</button >
252- <button x =" 226" y =" 10" height =" 34" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 140" sizeVersion =" 0" >go</button >
253- <button x =" 110" y =" 10" height =" 33" disableUntilTicks =" false" forever =" true" kind =" Observer" display =" layout" width =" 95" sizeVersion =" 0" >layout
254- display</button >
255- <button x =" 10" y =" 160" height =" 34" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" reset states" width =" 193" sizeVersion =" 0" >reset-nodes</button >
256- <button x =" 226" y =" 80" height =" 34" disableUntilTicks =" false" forever =" true" kind =" Observer" width =" 140" sizeVersion =" 0" >highlight</button >
257- <output x =" 375" y =" 415" height =" 70" fontSize =" 14" width =" 375" ></output >
258- <slider x =" 10" step =" 1" y =" 45" max =" 100" display =" num-nodes" height =" 33" min =" 2" direction =" Horizontal" default =" 100.0" variable =" num-nodes" width =" 195" sizeVersion =" 0" ></slider >
259- <slider x =" 10" step =" 1" y =" 81" max =" 100" display =" percent-grammar-1" height =" 33" min =" 0" direction =" Horizontal" default =" 60.0" variable =" percent-grammar-1" units =" %" width =" 194" sizeVersion =" 0" ></slider >
260- <chooser x =" 225" y =" 150" height =" 45" variable =" update-algorithm" current =" 0" display =" update-algorithm" width =" 140" sizeVersion =" 0" >
242+ <view x =" 390" wrappingAllowedX =" false" y =" 10" frameRate =" 30.0" minPycor =" -45" height =" 368" showTickCounter =" true" patchSize =" 4.0" fontSize =" 10" wrappingAllowedY =" false" width =" 375" tickCounterLabel =" ticks" maxPycor =" 45" updateMode =" 1" maxPxcor =" 45" minPxcor =" -45" ></view >
243+ <button x =" 10" y =" 10" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 95" display =" setup" >setup</button >
244+ <button x =" 10" y =" 220" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 193" display =" reset states" >reset-nodes</button >
245+ <slider x =" 10" step =" 1" y =" 55" max =" 100" width =" 195" display =" num-nodes" height =" 50" min =" 2" direction =" Horizontal" default =" 100.0" variable =" num-nodes" ></slider >
246+ <slider x =" 10" step =" 1" y =" 115" max =" 100" width =" 194" display =" percent-grammar-1" height =" 50" min =" 0" direction =" Horizontal" default =" 60.0" variable =" percent-grammar-1" units =" %" ></slider >
247+ <slider x =" 225" step =" 0.0050" y =" 370" max =" 0.05" width =" 150" display =" alpha" height =" 50" min =" 0" direction =" Horizontal" default =" 0.025" variable =" alpha" ></slider >
248+ <button x =" 10" y =" 175" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 194" display =" redistribute grammars" >redistribute-grammars</button >
249+ <slider x =" 225" step =" 0.05" y =" 210" max =" 1" width =" 150" display =" threshold-val" height =" 50" min =" 0" direction =" Horizontal" default =" 0.3" variable =" threshold-val" ></slider >
250+ <switch x =" 225" y =" 270" height =" 40" on =" true" variable =" sink-state-1?" width =" 150" display =" sink-state-1?" ></switch >
251+ <switch x =" 225" y =" 320" height =" 40" on =" true" variable =" logistic?" width =" 150" display =" logistic?" ></switch >
252+ <button x =" 225" y =" 50" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 150" display =" go once" >go</button >
253+ <chooser x =" 225" y =" 140" height =" 60" variable =" update-algorithm" current =" 0" width =" 150" display =" update-algorithm" >
261254 <choice type =" string" value =" individual" ></choice >
262255 <choice type =" string" value =" threshold" ></choice >
263256 <choice type =" string" value =" reward" ></choice >
264257 </chooser >
265- <slider x =" 225" step =" 0.0050" y =" 320" max =" 0.05" display =" alpha" height =" 33" min =" 0" direction =" Horizontal" default =" 0.025" variable =" alpha" width =" 140" sizeVersion =" 0" ></slider >
266- <button x =" 10" y =" 120" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" redistribute grammars" width =" 194" sizeVersion =" 0" >redistribute-grammars</button >
267- <slider x =" 225" step =" 0.05" y =" 205" max =" 1" display =" threshold-val" height =" 33" min =" 0" direction =" Horizontal" default =" 0.3" variable =" threshold-val" width =" 140" sizeVersion =" 0" ></slider >
268- <switch x =" 225" y =" 245" height =" 33" on =" true" variable =" sink-state-1?" display =" sink-state-1?" width =" 140" sizeVersion =" 0" ></switch >
269- <switch x =" 225" y =" 284" height =" 33" on =" true" variable =" logistic?" display =" logistic?" width =" 140" sizeVersion =" 0" ></switch >
270- <note x =" 15" y =" 205" height =" 151" textColorLight =" -16777216" fontSize =" 10" width =" 195" markdown =" false" >* threshold-val and sink state only
258+ <note x =" 10" y =" 265" backgroundDark =" 0" fontSize =" 10" width =" 200" markdown =" false" height =" 151" textColorDark =" -1" textColorLight =" -16777216" backgroundLight =" 0" >* threshold-val and sink state only
271259apply for "individual" and "threshold"
272260updating algorithms
273261
@@ -277,7 +265,19 @@ built-in bias towards grammar 1
277265* alpha only applies to the
278266"reward" updating algorithm
279267and when logistic? is on</note >
280- <button x =" 226" y =" 45" height =" 34" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" go once" width =" 140" sizeVersion =" 0" >go</button >
268+ <button x =" 225" y =" 90" height =" 35" disableUntilTicks =" false" forever =" true" kind =" Observer" width =" 150" >highlight</button >
269+ <button x =" 110" y =" 10" height =" 35" disableUntilTicks =" false" forever =" true" kind =" Observer" width =" 95" display =" layout" >layout
270+ display</button >
271+ <output x =" 390" y =" 390" height =" 70" fontSize =" 14" width =" 375" ></output >
272+ <button x =" 225" y =" 10" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 150" >go</button >
273+ <plot x =" 15" autoPlotX =" true" yMax =" 1.0" autoPlotY =" true" yAxis =" State" y =" 435" xMin =" 0.0" height =" 127" legend =" false" xMax =" 100.0" yMin =" 0.0" width =" 360" xAxis =" Time" display =" Mean state of language users in the network" >
274+ <setup ></setup >
275+ <update ></update >
276+ <pen interval =" 1.0" mode =" 0" display =" default" color =" -16777216" legend =" true" >
277+ <setup ></setup >
278+ <update >plot mean [state] of nodes</update >
279+ </pen >
280+ </plot >
281281 </widgets >
282282 <info ><![CDATA[ ## WHAT IS IT?
283283
0 commit comments