R/maternArray.R

Defines functions maternArray

Documented in maternArray

#' Matern covariance
#'
#' This function evaluates the Matern covariance function for the elements of 
#' a vector.
#'
#' @useDynLib telefit, .registration = TRUE
#'
#' @param d A numeric vector of distances at which the Matern 
#'        correlation function should be evaluated.
#' @param scale Scales correlations to covariances.
#' @param range Matern range parameter.  Controls the decay of pointwise 
#'        correlations as a function of distance.
#' @param smoothness Matern smoothness parameter.  Controls the number of 
#'        process derivatives.
#' @param nugget Spatial covariance nugget.  
#' 

maternArray = function(d, scale = 1, range = 1, smoothness = .5, nugget = 0) {
  .Call(`_telefit_r_maternArray`, as.numeric(d), scale, range, smoothness, 
        nugget)
}
jmhewitt/telefit documentation built on Feb. 9, 2020, 7:15 p.m.