% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{softmax}
\alias{softmax}
\title{Softmax function}
\usage{
softmax(eta, log = FALSE)
}
\arguments{
\item{eta}{Vector}

\item{log}{Logical, whether to return the value of the logarithm}
}
\value{
Numeric, vector length of \code{eta}: \eqn{\exp(\eta)/\sum\exp(\eta)}
}
\description{
Takes a vector of real numbers and returns the corresponding vector of probabilities
}
\details{
Uses \code{multiSA:::logspace.add} for numerical stability
}
