danioxoli / HotSpotAnalysis_Plugin

A QGIS plugin for hotspot analysis
GNU General Public License v3.0
55 stars 12 forks source link

Document numpy.random.seed(12345) #32

Closed kannes closed 4 years ago

kannes commented 5 years ago

https://github.com/danioxoli/HotSpotAnalysis_Plugin/blob/2120fcd80c8240a9a2546032dbc78dae38f09bed/hotspot_analysis.py#L618 says

numpy.random.seed(12345)

Please add some documentation as to why a fixed random seed is set there.

danioxoli commented 5 years ago

I believe that the concept of random seed is a bit far from the interest of standard users. Of course, this is introduced to obtain equal results at each Plugin run when using the same data and settings, and it's a common pattern when using random number generators.

Daniele