R/vsphn.R

Defines functions vsphn

vsphn <-
function(x,sill,range,nugget)
{
  if( range==0) return(rep(sill+nugget,length(x)))
 x1 <- ifelse(x <= range, x, range)
 nugget + sill * ( 3 * x1 / (2*range) - (x1/range)^3/2 )
}

Try the ltsk package in your browser

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

ltsk documentation built on Sept. 3, 2023, 1:06 a.m.