View source: R/theoreticalForm.R
OUanalytic | R Documentation |
The closed form expression of slope standard deviation, for an Ornstein-Uhlenbeck process.
\mjeqn\sigma_B(w) = \sqrt24\gamma D f(\gamma w),
where \gamma
is the slope of the drift term, D
is the amplitude of the noise term, and f(w)
is
f(x) = x^-3-3x^-4+12x^-6-e^-x\Big(3x^-4+12x^-5+12x^-6\Big).
OUanalytic(windowLength, gamma, D, approx="none")
windowLength |
Length of window, scalar or vector, float |
gamma |
Slope of drift term, scalar, float |
D |
Amplitude of noise term, scalar, float |
approx |
Approximation type (optional, defaults to "none"), string: none/smallW |
If 'windowLength' is a vector, the function will broadcast over it.
## Broadcasting over a vector of windows
> OUanalytic(10^seq(-1,2,len=5), 1, 1, "none")
[1] 4.798460391 1.843358930 0.495709635 0.059640405 0.004824965
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.