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
Copy file name to clipboardExpand all lines: demo/dbscan-clustering-demo-v5.nlogo
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ HORIZONTAL
219
219
@#$#@#$#@
220
220
## WHAT IS IT?
221
221
222
-
This model demonstrates the use of the DBSCAN extension (https://github.com/chrfrantz/NetLogo-Extension-DBSCAN/). It highlights clustering of individuals/turtles by both variables as well as location.
222
+
This model demonstrates the use of the DBSCAN extension (https://github.com/chrfrantz/NetLogo-Extension-DBSCAN/). It highlights clustering of individuals/turtles by both variables as well as location. (Clustering of patches is supported for NetLogo 6 onwards.)
223
223
224
224
## HOW IT WORKS
225
225
@@ -237,7 +237,7 @@ Click either button and observe how the clustering works both for variable-based
237
237
238
238
## THINGS TO TRY
239
239
240
-
Try varying the maximum distance (slider 'max-distance-agents') to see how agents are clustered by variable for different wealth ranges (button 'cluster-agents-by-variable'). The same slider is also used for the maximum permissible distance between agents if performing location-based clustering (button 'cluster-agents-by-location'). You can further vary the number of members necessary to form a cluster and see how this changes the emerging clusters.
240
+
Try varying the maximum distance (slider 'maximum-distance-agents') to see how agents are clustered by variable for different wealth ranges (button 'cluster-agents-by-variable'). The same slider is also used for the maximum permissible distance between agents if performing location-based clustering (button 'cluster-agents-by-location'). You can further vary the number of members necessary to form a cluster (slider 'minimum-number-of-members')and see how this changes the emerging clusters.
@@ -304,7 +304,7 @@ Click either button and observe how the clustering works both for variable-based
304
304
305
305
## THINGS TO TRY
306
306
307
-
Try varying the maximum distance (slider 'max-distance-agents') to see how agents are clustered by variable for different wealth ranges (button 'cluster-agents-by-variable'). The same slider is also used for the maximum permissible distance between agents if performing location-based clustering (button 'cluster-agents-by-location'). In addition, try out the clustering of patches by different resource levels (slider 'max-distance-patches') using the button 'cluster-patches-by-variable'. You can further vary the number of members (i.e., agents or patches) necessary to form a cluster and see how this changes the emerging clusters.
307
+
Try varying the maximum distance (slider 'maximum-distance-agents') to see how agents are clustered by variable for different wealth ranges (button 'cluster-agents-by-variable'). The same slider is also used for the maximum permissible distance between agents if performing location-based clustering (button 'cluster-agents-by-location'). In addition, try out the clustering of patches by different resource levels (slider 'maximum-distance-patches') using the button 'cluster-patches-by-variable'. You can further vary the number of members (i.e., agents or patches) necessary to form a cluster (slider 'minimum-number-of-members')and see how this changes the emerging clusters.
publicstaticfinalStringERROR_MISSING_INPUT_DATA = "Clustering input data (e.g., turtles, patches) has not been provided (or is empty).";
13
15
publicstaticfinalStringERROR_MISSING_CLUSTER_VARIABLE = "Cluster variable has not been specified.";
16
+
publicstaticfinalStringERROR_INVALID_MINIMUM_NUMBER_OF_ELEMENTS = "Minimum number of cluster elements cannot be smaller than 2.";
14
17
publicstaticfinalStringERROR_MISSING_MINIMUM_NUMBER_OF_ELEMENTS = "Minimum number of cluster elements has not been specified.";
18
+
publicstaticfinalStringERROR_NEGATIVE_MAXIMUM_DISTANCE_OF_ELEMENTS = "Maximum distance of cluster variable values cannot be negative.";
15
19
publicstaticfinalStringERROR_MISSING_MAXIMUM_DISTANCE_OF_ELEMENTS = "Maximum distance of cluster variable values has not been specified.";
16
20
publicstaticfinalStringERROR_CLUSTER_PATCHES_NOT_SUPPORTED_IN_NETLOGO_5 = "Clustering of patches by variables is not supported for NetLogo 5 version of the DBSCAN extension. " +
17
21
"Upgrade to NetLogo 6 or higher to use this feature.";
0 commit comments