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)
}

Try the telefit package in your browser

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

telefit documentation built on Feb. 4, 2020, 9:08 a.m.