Path_array: Path array generator

Description Usage Arguments Value Examples

View source: R/PLotting_sample_paths_stable.R

Description

The function takes a list of parameters (alpha, H) and uses expand.grid to obtain all possible combinations of them. Based on each combination, the function simulates an lfsm sample path. It is meant to be used in conjunction with function Plot_list_paths.

Usage

1
Path_array(N, m, M, l, sigma)

Arguments

N

a number of points of the lfsm.

m

discretization. A number of points between two nearby motion points

M

truncation parameter. A number of points at which the integral representing the definition of lfsm is calculated. So, after M points back we consider the rest of the integral to be 0.

l

a list of parameters to expand

sigma

Scale parameter of lfsm

Value

The returned value is a data frame containing paths and the corresponding values of alpha, H and frequency.

Examples

1
2
3
4
l=list(H=c(0.2,0.8),alpha=c(1,1.8), freq="H")
arr<-Path_array(N=300,m=30,M=100,l=l,sigma=0.3)
str(arr)
head(arr)

rlfsm documentation built on April 16, 2021, 5:06 p.m.

Related to Path_array in rlfsm...