R/mar.tailup.R

Defines functions mar.tailup

mar.tailup <- function(dist.hydro, weight, parsil = parsil, range1 = range1)
{
	no <- length(dist.hydro[,1])
	np <- length(dist.hydro[1,])
	CovMat <- matrix(0, ncol = np, nrow = no)
	ind <- (1e-9 < dist.hydro/range1)
	CovMat[ind] <- parsil*log(90*dist.hydro[ind]/range1 + 1)/(90*dist.hydro[ind]/range1)
	ind <- 1e-9 >= dist.hydro/range1
	CovMat[ind] <-parsil
	CovMat*weight
}

Try the SSN package in your browser

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

SSN documentation built on March 7, 2023, 5:30 p.m.