Thanks to visit codestin.com Credit goes to dbpedia.org
Function that maps a k-element real-valued vector to a k-element categorical probability distribution