Check out example codes for "weights [0.03333567, 0.07472567, 0.10954318, 0.13463336, 0.14776211, 0.14776211, 0.13463336, 0.10954318, 0.07472567, 0.03333567]". It will help you in understanding the concepts better.

Code Example 1

Gauss weights in  the interval (0,1]

Learn ReactJs, React Native from akashmittal.com