我有三种类型的区域,使用补丁的颜色分开 . 我想计算每个单独区域中海龟种群的平均值 .

count turtle-on patches with [pcolor = red] 
     count turtle-on patches with [pcolor = green]
     count turtle-on patches with [pcolor = blue]

这些将给出每个区域的海龟总数 . 现在我想计算每个区域的海龟密度,我发现某个地方用下面的方法来计算我根据自己的需要遵循的平均值 . But, here I am not getting how actually netlogo is calculating mean in this case.

let pop-count-red mean [count turtles-here] of patches with [pcolor = red] 
     let pop-count-green mean [count turtles-here] of patches with [pcolor = green]
     let pop-count-blue mean [count turtles-here] of patches with [pcolor = blue]

要计算密度,我们需要一个区域内的人数,netlogo如何决定红色/绿色或蓝色区域 . 我的意思是,如果10个补丁是红色的,并且每个红色补丁都有不同数量的乌龟,比如说一个红色补丁中的4turtle,另一个红色补丁中的2只乌龟等等 . 那么它是如何被分类的 . 实际上我们有一些定义的单位来计算,所以我们根据需要简单地划分和转换单位 .

这里的“意思是”将所有海龟都计入红色斑块并将它们除以10 .

请帮助我理解这一点 .