Netlogo error while observer running mean -


i trying plot mean of variable possessed of agents (turtles). however, when click setup error occurs: error while observer running mean...

this code: plot mean [score] of turtles [not document?]
summarize it, each turtle possesses 2 variables, score , document?. if agent not document use in mean calculation.

i created working code under assumption error related initialization. work-around code: if (ticks > 0) [plot mean [score] of turtles [not document?]]

however, i'm looking better solution, think possible leave out if , somehow initialize score variable before mean function called. if has way solve i'm open it.

assuming clear ticks @ beginning of setup, if (ticks > 0) should return false when run setup. sure mean working, or possible it's never being run?


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -