R/calc.difference.R

"calc.difference" <-
function(obs){
   n.obs <- length(obs)
   obs.mat1 <- 
matrix(rep(obs,each=n.obs),nrow=n.obs,ncol=n.obs,byrow=TRUE)
   obs.mat2 <- t(obs.mat1)
   diff.matrix <- (obs.mat1-obs.mat2)^2
return(diff.matrix)
}

Try the ProbForecastGOP package in your browser

Any scripts or data that you put into this service are public.

ProbForecastGOP documentation built on May 2, 2019, 3:42 a.m.