Description Usage Arguments Value Examples
View source: R/estimate_sigma.R
This function performs an estimation of the standard deviation of the noise in the curves. Based on add ref, the following formula is used:
\hat{σ^2} = \frac{1}{N}∑_{n = 1}^{N} \frac{1}{2(M_n - 1)}∑_{l = 2}^{M_n}(Y_{n, (l)} - Y_{n, (l-1)})^2
1 | estimate_sigma(data, t0 = 0.5, k0 = 2)
|
data |
A list, where each element represents a curve. Each curve have to be defined as a list with two entries:
|
t0 |
Numeric, the sampling point at which we estimate σ. We will consider the 8k0 - 7 nearest points of t_0 for the estimation of σ |
k0 |
Numeric, the number of neighbors of t_0 to consider. Should be set as k0 = M * exp(-log(log(M))^2). |
Numeric, an estimation of the standard deviation of the noise.
1 2 | df <- generate_fractional_brownian(N = 1000, M = 300, H = 0.5, sigma = 0.05)
estimate_sigma(df, t0 = 0.5, k0 = 14)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.