ESPresense-companion
ESPresense-companion copied to clipboard
Gaussian Weighting Function Math?
Is the Gaussian function written correctly? Maybe I missed something but it looks like it's missing a power in the first sigma term? var y = 1d / Math.Sqrt(_sigma * 2d * Math.PI) * Math.Exp(-(Math.Pow(x, 2d) / (2d * Math.Pow(_sigma, 2d))))
should this be:
var y = 1d / Math.Sqrt(Math.Pow(_sigma, 2d)* 2d * Math.PI) * Math.Exp(-(Math.Pow(x, 2d) / (2d * Math.Pow(_sigma, 2d))))