#### Specifying dispersal distances for turtles in Netlogo

``````to move-dispersing-femjuvs
range + count femjuvs-on natal-range + count malejuvs-on natal-range +
count infants-on natal-range)
let chance-disperse 1 / (1 + exp(2.051 - (0.002605 * density)))
if (random-float 1.001 < chance-disperse) [
let mean-distance (18.703 + (0.02533 * density))
``````

1 个回复

# 可能使用：“ setxy”或“ forward”

## setxy

``````ask femjuvs [ setxy <xcor> <ycor> ] ; example

ask femjuvs [ let x-coordinate <some-long-computation>
let y-coordinate <some-longer-computation>
setxy x-coordinate y-coordinate ]
``````

## 向前

``````ask femjuvs [ forward <number> ]
``````

``````to move-dispersing-femjuvs
let density (count femadults-on ...) ; shortened for space

* forward 1              ; move forward one
]
...
end
``````

``````ask femjuvs [ face <random-point> ; or facexy <xcor> <ycor>
left 180  ]         ; turn the opposite direction
ask femjuvs [ forward 1 ]         ; disperse
``````

1 如何在Netlogo中指定海龟和补丁之间的不同距离

2014-12-12 15:47:35 1 898   netlogo
2 Netlogo - 如何计算特定海龟周围的海龟数量

2018-08-06 22:41:24 2 1219   netlogo
3 Netlogo如何询问海龟等到其他海龟超过特定距离

5 Netlogo：移动海龟并计算距离

2017-12-06 08:39:52 1 245   netlogo
7 设定海龟的年龄

2015-05-02 01:57:40 2 1020   netlogo
8 netlogo如何计算一定距离内的海龟总数

2015-04-19 21:20:14 1 1237   netlogo
9 设置海龟之间的预设距离（netlogo）

2017-11-04 16:17:27 0 85   netlogo
10 Netlogo：所有海龟之间的平均距离

2018-02-28 12:44:44 1 131   netlogo