更改

跳到导航 跳到搜索
添加2,143字节 、 2022年4月15日 (五) 18:00
无编辑摘要
第117行: 第117行:     
你觉得还有其他有趣的方式可以让这些鸟彼此不同吗?种群中可能存在随机变异,也可能存在不同的“物种”。
 
你觉得还有其他有趣的方式可以让这些鸟彼此不同吗?种群中可能存在随机变异,也可能存在不同的“物种”。
 +
 +
 +
== NETLOGO FEATURES(NetLogo默认设定) ==
 +
Notice the need for the <code>subtract-headings</code> primitive and special procedure for averaging groups of headings. Just subtracting the numbers, or averaging the numbers, doesn't give you the results you'd expect, because of the discontinuity where headings wrap back to 0 once they reach 360.
 +
 +
 +
注意,取鸟群的平均飞行方向需要使用<code>subtract-headings</code>语句。单纯的减去数字或者取平均值并不能得到结果,在NetLogo默认设定中这些数字一旦达到360度,标朝向会自动转回0。
 +
 +
== 相关模型 ==
 +
 +
* Moths
 +
* Flocking Vee Formation
 +
* Flocking - Alternative Visualizations
 +
 +
== 参考文献 ==
 +
This model is inspired by the Boids simulation invented by Craig Reynolds. The algorithm we use here is roughly similar to the original Boids algorithm, but it is not the same. The exact details of the algorithm tend not to matter very much -- as long as you have alignment, separation, and cohesion, you will usually get flocking behavior resembling that produced by Reynolds' original model. Information on Boids is available at <nowiki>https://web.archive.org/web/20210818090425/http://www.red3d.com/cwr/boids/</nowiki>.
 +
 +
 +
这个模型的灵感来自克雷格·雷诺兹发明的Boids模拟。我们在这里使用的算法与原始Boids算法大致相似,但并不相同。算法的具体细节并不重要——只要你拥有对齐、分离和靠近,你便能够获得类似于Reynolds最初模型所创造的群体行为。有关Boids的信息请访问https://web.archive.org/web/20210818090425/<nowiki>http://www.red3d.com/cwr/boids/。</nowiki>
 +
 +
== Reference ==
 +
For the model itself:
 +
 +
* Wilensky, U. (1998). NetLogo Flocking model. <nowiki>http://ccl.northwestern.edu/netlogo/models/Flocking</nowiki>. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
 +
 +
Please cite the NetLogo software as:
 +
 +
* Wilensky, U. (1999). NetLogo. <nowiki>http://ccl.northwestern.edu/netlogo/</nowiki>. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
567

个编辑

导航菜单