periodic_cov function

Periodic covariance function