dot-cor_exp function

Calculate exponential correlation

Calculate exponential correlation

.cor_exp(x, c, gamma = 1/2, nugget = 0)

Arguments

  • x: A numeric vector, matrix, or array.
  • c: Smooth parameter, c>0c>0.
  • gamma: Scale parameter, γ(0,1/2]\gamma\in(0, 1/2]. Default is 1/2.
  • nugget: The nugget effect [0,1]\in[0, 1].

Returns

Correlations of the same dimension as x.

Details

The exponential correlation function with scale parameter cc

and smooth parameter γ\gamma has the form

C(x)=(1nugget)exp(cx2γ)+nuggetδx=0, C(x)=(1-\text{nugget})\exp(-c|x|^{2\gamma})+\text{nugget}\cdot\delta_{x=0},

where δx=0\delta_{x=0} is 1 when x=0x=0 and 0 otherwise.

References

Diggle, P. J., Tawn, J. A., & Moyeed, R. A. (1998). Model-Based Geostatistics. Journal of the Royal Statistical Society. Series C (Applied Statistics), 47(3), 299–350.