Skip to contents

Compute a periodic covariance matrix

Usage

cov_periodic_cpp(xa, xb, sigma, l, p)

Arguments

xa

NumericVector of values

xb

NumericVector of values

sigma

double denoting the variance

l

double denoting the lengthscale

p

int denoting the period

Value

NumericMatrix of covariance

Author

Trent Henderson

Examples

x1 <- seq(from = -2, to = 2, length.out = 100)
cov_periodic_cpp(x1, x1, 0.05, 1, 1)
#> Error in cov_periodic_cpp(x1, x1, 0.05, 1, 1): could not find function "cov_periodic_cpp"