powered by
softmax function
softmax(par)
vector
num vector with components >= 0 and sum = 1
# NOT RUN { p <- c(0.6, 0.3, 0.1) softmax(p) # }
Run the code above in your browser using DataLab