Added the gamma parameter to the probability calculation based vector creation.