bm_compound_poisson_ghyp: Generates a (correlated) Brownian motion path with correlated...

Description Usage Arguments Value Examples

View source: R/path_generation.R

Description

Generates a (correlated) Brownian motion path with correlated but unsynchronised GHYP jumps.

Usage

1
bm_compound_poisson_ghyp(n, sigma, ghyp_distr, n_jumps, delta_time)

Arguments

n

Length of the path

sigma

Correlation matrix for the Brownian part.

ghyp_distr

GHYP distribution (ghyp::ghyp).

n_jumps

Number of jumps.

delta_time

Time step.

Value

A BM path with Correlated Gaussian jumps

Examples

1
2
3
4
5
6
7
8
n <- 1000
d <- 3
sigma <- matrix(c(1.0, 0.2, 0.2, 0.2, 1.0, 0.2, 0.2, 0.2, 1.0), 3, 3)
jump_sigma <- sigma
n_jumps <- 50
delta_time <- 0.5
ghyp_distr <- ghyp::ghyp(mu = rep(0, d))
bm_compound_poisson_ghyp(n, sigma, ghyp_distr, n_jumps, delta_time)

ntwk documentation built on Sept. 13, 2021, 9:07 a.m.