R/zeta.R

Defines functions zeta

## This is the R implementation of the Riemann zeta function.
## NOTE: Note so well construct.
##' @export
zeta <- function(s, k = 10)
  {
    sVec <- as.vector(s)
    nObs <- length(s)
    kSeries <- 1:k
    kMat <- matrix(1/kSeries, nObs, k)
    out <- rowSums(kMat^sVec)
    return(out)
  }
thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.