mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-11-29 00:15:11 +00:00
M3a: handle single-step rough-vol horizon
This commit is contained in:
@@ -327,7 +327,11 @@ hurst_rs <- function(x) {
|
||||
|
||||
fgn_davies_harte <- function(n, H, seed=1L) {
|
||||
n <- as.integer(n)
|
||||
stopifnot(n >= 2, H > 0, H < 1)
|
||||
stopifnot(n >= 1, H > 0, H < 1)
|
||||
if (n == 1) {
|
||||
set.seed(seed)
|
||||
return(rnorm(1))
|
||||
}
|
||||
k <- 0:n
|
||||
gamma <- 0.5 * (
|
||||
abs(k-1)^(2*H) - 2*abs(k)^(2*H) + abs(k+1)^(2*H)
|
||||
|
||||
Reference in New Issue
Block a user