forked from jonathancornelissen/highfrequency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcholCovrMRCov.Rd
46 lines (44 loc) · 906 Bytes
/
cholCovrMRCov.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/internalRealizedMeasures.R
\name{cholCovrMRCov}
\alias{cholCovrMRCov}
\title{#' @keywords internal
zgamma <- function (x, y, gamma_power) {
if (x^2 < y) {
out <- abs(x)^gamma_power
} else {
if (gamma_power == 1) {
out <- 1.094 * sqrt(y)
}
if (gamma_power == 2) {
out <- 1.207 * y
}
if (gamma_power == 4/3) {
out <- 1.129 * y^(2/3)
}
}
return(out)
}}
\usage{
cholCovrMRCov(returns, delta = 0.1, theta = 1)
}
\description{
#' @keywords internal
zgamma <- function (x, y, gamma_power) {
if (x^2 < y) {
out <- abs(x)^gamma_power
} else {
if (gamma_power == 1) {
out <- 1.094 * sqrt(y)
}
if (gamma_power == 2) {
out <- 1.207 * y
}
if (gamma_power == 4/3) {
out <- 1.129 * y^(2/3)
}
}
return(out)
}
}
\keyword{internal}