Description Usage Arguments Value Examples
View source: R/MaxLikelihood.R
Maximum likelihood method for Hurst parameter estimation of multivariate data
1 | MaxLikelihood(X, Z)
|
X |
Coordinates |
Z |
Observations |
Returns the estimate of the Hurst parameter (a real in [0,1)) and a graph indicating the minimized maximum likelihood function with the Hurst parameter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Load FracKrigingR library
library(FracKrigingR)
# generate Coordinates
p<-2; K<-20;
X<-matrix(0,ncol=p, nrow=K)
for(j in 1:p){
for(i in 1:K){
X[i,j] = rnorm(1, 0, 1)
}
}
# generate fractional Brownian vector field
H <- 0.8; m <- 3
Z<-FracField(K,m,H,X)
# Hurst parameter estimation
MaxLikelihood(X,Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.