Function that maps a k-element real-valued vector to a k-element categorical probability distribution