powered by
kernel_generic_trawl_acf
kernel_generic_trawl_acf(p, g, x)
acf or vector of acfs evaluated in x
kernel function to be used in the weighted trawl process
trawl function
argument for which the acf will be computed (this can be a vector)
We numerically approximate the acf for a given periodic function p and a given trawl function g
my_p <- function(x){sin(x)} my_g <- function(x){exp(-x)} kernel_generic_trawl_acf(my_p, my_g, 1) kernel_generic_trawl_acf(my_p, my_g, c(1,2,3,4))
Run the code above in your browser using DataLab