exp_sq: Exponential squared correlation function

Description Usage Arguments Value Examples

View source: R/correlations.R

Description

For points x, xp and a correlation length theta, gives the exponent of the squared distance between x and xp, weighted by theta squared.

Usage

1
exp_sq(x, xp, theta)

Arguments

x

A numeric position vector

xp

A numeric position vector

theta

A numeric correlation length

Value

The exponental-squared correlation between x and xp.

Examples

1
2
3
4
exp_sq(1,2,0.1)
#> 3.720076e-44
exp_sq(c(1,2,-1),c(1.5,2.9,-0.7),0.2)
#> 3.266131e-13

Tandethsquire/emulatorr documentation built on April 12, 2021, 1:08 a.m.