R/pex-acf.R

Defines functions pex.acf

Documented in pex.acf

#' Power-exponential autocorrelation function.
#'
#' @param tseq Length-\code{N} vector of timepoints.
#' @param lambda Timescale parameter.
#' @param rho Power parameter.
#' @return Length-\code{N} autocorrelation vector.
#' @details
#' The power-exponential autocorrelation function is given by:
#' \deqn{
#' \mathrm{\scriptsize ACF}(t) = \exp \left\{-(t/\lambda)^\rho\right\}.
#' }{
#' acf(t) = exp (-(t / \lambda)^\rho).
#' }
#' @examples
#' pex.acf(tseq = 1:10, lambda = 1, rho = 2)
#' @export
pex.acf <- function(tseq, lambda, rho) {
  exp(-(tseq/lambda)^rho)
}

Try the SuperGauss package in your browser

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

SuperGauss documentation built on May 1, 2019, 7:58 p.m.