3D Gaussian formula in jit.gen for navigation field
Hi all,
trying to identify a 3D domain through which a trajectory should be computed, and wanted to use a Gaussian bell for the domain (the object shoul navigate the surface) BUT...
I stumbled upon an enigma... I am trying to implement in jit.gen the function which defines a 3D Gaussian bell
But somehow I am missing something. Probably due to my non proficiency in maths implementation in jit.gen
Could anybody shed some light? I am pretty sure the formula is there, I just cannot get why won't see the result, which of course means I am doing something very wrong.
here a patch to demonstrate
thank you in advance
J
Use [snorm] for the calculation of the Gaussian. This gives coordinates [-1., 1.].
oh, thanks, apparently I forgot a power of 2 too...
Now the fun part, elaborating a way to have a starting random point x0,y0,z0 and an end point x1,y1,z1 and deriving a path for an object to navigate the curve...