I will rotate vector in netlogo from angle taken from Gaussian distribution. Using the code given below:
Rotate-vector [vec angle] to report, let's first wake up and leave last week, let's run Mag x SQL (x * x + y * y) Old angle ethan ace two new angle + old-angle report (Mag * sin new-angle) (Mag * cos new-angle) and
Emulation of the angle of the normal distribution To do this, I use the following:
Set Angle Random-Normal 0 & lt; S.d & gt;
But I am convinced that this implementation is right that the standard deviation described in the papers is correct according to a spherical wrapped Gaussian distribution (on page 3 (column 2,3nd paragraph) and On page 4 Table 1 (Error (SD)).
Thanks.
Comments
Post a Comment