I am new both to NetLogo (NL) and Stackoverflow. I am working on NL model of opinion formation and I am stuck with following problem (googling or anything else didn't work for me).
First, turtle-own property turtles-own [opinion]
is defined. Next, there is a random normal distribution of opinion variable (ranges from -1 to 1). I want to be able to account for different shapes of opinion distribution in range from -1 to 1. This is done by using random-normal
command with two inputs: mean (set to 0) and std. dev. (set by slider); i.e. the shape is given by the std. dev. value.
Here is a code of setup function:
to setup
clear-all
random-seed seed
crt number
ask turtles [set opinion random-normal 0 std.dev.]
... (defining other turtles properties)
end
Nevertheless, setting std.dev. slider to 1 does not produce expected outcome (bell-shaped distribution), but rather uniform distribution. I am not sure whether this is a conceptual or technical problem.
Any help is much appreciated.