I am new to both NetLogo (NL) and Stackoverflow. I am working on an NL opinion building model and I am stuck with the following problem (googling or something else did not work for me).
The turtle-own property is first defined turtles-own [opinion]. Further, there is a random normal distribution of the variable opinions (from -1 to 1). I want to take into account various forms of distribution of opinions in the range from -1 to 1. This is done using a command random-normalwith two inputs: mean (set to 0) and std. deviation (set by the slider); those. the form is given by std. deviation value.
Here is the setup function code:
to setup
clear-all
random-seed seed
crt number
ask turtles [set opinion random-normal 0 std.dev.]
... (defining other turtles properties)
end
However, by installing std.dev. a slider up to 1 does not give the expected result (bell-shaped distribution), but rather a uniform distribution. I am not sure if this is a conceptual or technical issue.
Any help is greatly appreciated.
source
share