You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<plotx="75"autoPlotX="true"yMax="1.0"autoPlotY="true"yAxis="K(r)"y="55"xMin="0.0"height="355"legend="false"xMax="1.0"yMin="0.0"width="353"xAxis="r"display="Ripley's K function">
80
+
<plotx="75"autoPlotX="true"yMax="1.0"autoPlotY="true"yAxis="K(r)"y="55"xMin="0.0"height="355"legend="true"xMax="1.0"yMin="0.0"width="353"xAxis="r"display="Ripley's K function">
This model demonstrates using the Simple R extension (sr) to run Ripley's K=function to analyze data. Ripley's K-function is used to find out if data are clustered, dispersed or randomly distributed.
115
114
116
115
## HOW IT WORKS
117
116
118
-
This section could explain what rules the agents use to create the overall behavior of the model.
117
+
The agents are basically placed randomly and the Ripleys K is run on their locations. Each time you press `go` they move randomly again and recalculated Ripley's K.
119
118
120
119
## HOW TO USE IT
121
120
122
-
This section could explain how to use the model, including a description of each of the items in the interface tab.
121
+
Press `setup` and then `go`. Sometimes you will get an error "Extension exception: object 'agppp' not found...". In this case, just `setup` and `go` again, as it usually has to do with data being produced randomly which creates an error given how this model is coded.
123
122
124
123
## THINGS TO NOTICE
125
124
126
-
This section could give some ideas of things for the user to notice while running the model.
125
+
Notice the difference between the actual Ripley’s K-function on the data, `R(k)`, and the theoretical value.
127
126
128
127
## THINGS TO TRY
129
128
130
-
This section could give some ideas of things for the user to try to do (move sliders, switches, etc.) with the model.
131
-
132
-
## EXTENDING THE MODEL
133
-
134
-
This section could give some ideas of things to add or change in the procedures tab to make the model more complicated, detailed, accurate, etc.
135
-
136
-
## NETLOGO FEATURES
137
-
138
-
This section could point out any especially interesting or unusual features of NetLogo that the model makes use of, particularly in the Procedures tab. It might also point out places where workarounds were needed because of missing features.
129
+
Try changing how the turtles are arranged and see what that does to Ripley's K.
139
130
140
131
## RELATED MODELS
141
132
142
-
This section could give the names of models in the NetLogo Models Library or elsewhere which are of related interest.
143
-
144
-
## CREDITS AND REFERENCES
145
-
146
-
This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.
133
+
For more examples of the Simple R Extension, see the other example models in the `sr` folder.
0 commit comments