ESPresense-companion icon indicating copy to clipboard operation
ESPresense-companion copied to clipboard

Gaussian Weighting Function Math?

Open dxmnkd316 opened this issue 5 months ago • 3 comments

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))))

dxmnkd316 avatar Feb 15 '24 00:02 dxmnkd316