Learn R Programming

ambit (version 0.2.3)

kernel_generic_trawl_acf: kernel_generic_trawl_acf

Description

kernel_generic_trawl_acf

Usage

kernel_generic_trawl_acf(p, g, x)

Value

acf or vector of acfs evaluated in x

Arguments

p

kernel function to be used in the weighted trawl process

g

trawl function

x

argument for which the acf will be computed (this can be a vector)

Details

We numerically approximate the acf for a given periodic function p and a given trawl function g

Examples

Run this code
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