acf_DExp: Autocorrelation function of the double exponential trawl...

Description Usage Arguments Details Value Examples

View source: R/TrawlCorrelationFunctions.R

Description

This function computes the autocorrelation function associated with the double exponential trawl function.

Usage

1
acf_DExp(x, w, lambda1, lambda2)

Arguments

x

The argument (lag) at which the autocorrelation function associated with the double exponential trawl function will be evaluated

w

parameter in the double exponential trawl

lambda1

parameter in the double exponential trawl

lambda2

parameter in the double exponential trawl

Details

The trawl function is parametrised by parameters 0≤ w≤ 1 and λ_1, λ_2 > 0 as follows:

g(x) = w e^{λ_1 x}+(1-w) e^{λ_2 x}, \mbox{ for } x ≤ 0.

Its autocorrelation function is given by:

r(x) = (w e^{-λ_1 x}/λ_1+(1-w) e^{-λ_2 x}/λ_2)/c, \mbox{ for } x ≥ 0,

where

c = w/λ_1+(1-w)/λ_2.

Value

The autocorrelation function of the double exponential trawl function evaluated at x

Examples

1
2
3
4
#Evaluate the trawl autocorrelation function at x=1
acf_DExp(1,0.3,0.1,2)
#Plot the trawl autocorrelation function
plot(acf_DExp((0:10),0.3,0.1,2))

trawl documentation built on Aug. 16, 2018, 5:04 p.m.