Skip to content

Instantly share code, notes, and snippets.

@adielfernandez
Created March 7, 2018 23:24
Show Gist options
  • Save adielfernandez/fb19565a0d15cbd84de9e68b6688adaf to your computer and use it in GitHub Desktop.
Save adielfernandez/fb19565a0d15cbd84de9e68b6688adaf to your computer and use it in GitHub Desktop.
Normalized Gaussian Distribution
float x;
float y = (1.0f / (0.4f * sqrt( glm::two_pi<float>() ) )) * exp( -0.5f * pow( ( x - 0.5f )/0.13, 2 ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment