colinsheppard/insalmo-instream-gui — Issue #23: Possible error in LFT hiding cover experiment
Author: SFRailsback
Created: 2012-01-18 23:54:13+00:00
State: open

The following is supposed to happen in calculating DistToHide values when H (the control variable in the hiding cover experiment) is greater than 1.0:

If cellDistToHide is greater than hidingCoverThreshold, its value is set to (0.5 × hidingCoverThreshold) if a random Bernoulli trial is true. The probability of this trial being true is (H-1.0). Therefore, the number of cells providing close hiding cover is increased.

It looks like that modification may currently be executed when H is less than 1.0, when it shouldn't be. Please check.