R/etaphi.r

Defines functions etaphi

Documented in etaphi

etaphi <- function(x, eta) {
  n <- length(x)
  dx <- c(0, diff(x))
  phi <- eta[1] + c(0, cumsum(dx[2:n] * eta[2:n]))
  return(phi)
}

Try the logcondens package in your browser

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

logcondens documentation built on Aug. 22, 2023, 5:06 p.m.