Code center > Bug reports
Bug in statistics
Sprotiel:
I think every per species average wrongly divides the sum of the relevant properties by the total number of bots instead of dividing by the number of bots of the species. E.g. if you start a sim with 10 vegs and 5 animals with 5000 nrg each, the average energy for vegs will appear as 3333, and for animals as 1667.
EricL:
You are exactly right. Nice find. Fixed in 2.42.9q.
Sprotiel:
It seems my former bug report was incorrect. In 2.42.9t (and probably also in .9u), mutations and mutations/DNA length appear to be incorrectly multiplied by a factor (total number of bots / number of bots in species).
EricL:
--- Quote from: Sprotiel ---It seems my former bug report was incorrect. In 2.42.9t (and probably also in .9u), mutations and mutations/DNA length appear to be incorrectly multiplied by a factor (total number of bots / number of bots in species).
--- End quote ---
I've been looking at this and I don't think this is the case.
Mutations is the average # of mutations per individual for that species so it is calculated as the sum of the all mutations for all members of the speces divided by the number of individuals in the species.
Mutations/DNA Length is the same just divided by dna length I.e. Sum of (number of mutations for bot / DNA lenght of bot) for all bots in species.
I may be missing somehting, but I think it's correct.
Sprotiel:
--- Quote from: EricL ---I may be missing somehting, but I think it's correct.
--- End quote ---
It probably is. I've seen since that I had some bots with a very large number of mutations. So the problem is just that the average is sometimes misleading.
Navigation
[0] Message Index
[#] Next page
Go to full version