Skip to contents

Computes a periodic kernel for a distance vector or matrix.

Usage

periodic_kernel(x, alpha, period)

Arguments

x

A numeric vector or matrix of distances.

alpha

A positive numeric scalar controlling the amplitude.

period

A positive numeric scalar giving the period.

Value

A numeric vector or matrix of periodic kernel values.