R/Gradient_Exponential.R

Defines functions Gradient_Exponential

#' Gradient: Exponential function
#'
#' This function evaluates gradients of the exponential function \deqn{f(x_1,x_2,\ldots,x_k)=\exp(\sum_{i=1}^kc_ix_{i}).}
#'
#' @param parameter The value of the parameters \eqn{x_1,x_2,\ldots,x_k}.
#' @param coefficient The value of the coefficients \eqn{c_1,c_2,\ldots,c_k}.
#'
#' @return
#' Gradients of the exponential function.
#'
#' @keywords internal
#' @noRd
Gradient_Exponential<-function(parameter,coefficient)
{
  return(coefficient*exp(sum(coefficient*parameter)))
}

Try the MMAD package in your browser

Any scripts or data that you put into this service are public.

MMAD documentation built on March 12, 2026, 5:07 p.m.