log_diff_exp.Rd 651 Bytes
Newer Older
Eric Coissac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/proba.R
\name{log_diff_exp}
\alias{log_diff_exp}
\title{Logarithm of the difference of two exponentials}
\usage{
log_diff_exp(a, b)
}
\arguments{
\item{a}{first logarithmic values to add}

\item{b}{second logarithmic values to add}
}
\value{
a numeric vector containing the logarithm of the 
difference of the exponential of `a` and `b`.
}
\description{
`log_add_exp` computes the logarithm of the difference
of the exponential of two value.
}
\details{
\deqn{log\_add\_exp(a,b) = \log(e^a - e^b)}{%
      log_add_exp(a,b) = log(exp(a) - exp(b))}
}
\author{
Eric Coissac
}