Closed vernor1 closed 5 years ago
This threw me off, too.
However, if you assume the standard deviations are actually range and bearing, converting them to x and y gives you a very small standard deviation for y, which causes the exponent in the gaussian to be a large negative number, which then leads to weights of zero.
Comment should definitely be fixed. I also agree with the idea of using a struct to minimize confusion.
Fixed by c0c726b, thanks for noting!
The method description says:
However in
main.cpp
, the 2nd argument's nature is different:It's better define a structure for passing this kind of data into the method.