Given a weight vector calculate the probabilities of selecting the lth gaussian function and return the index of lht gaussian selected with probability p
The vector of weights
The index of lht gaussian function
 Socha, K., & Dorigo, M. (2008). Ant colony optimization for continuous domains. European Journal of Operational Research, 185(3), 1155-1173. http://doi.org/10.1016/j.ejor.2006.06.046
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.