R/LKFindAlphaVarianceWeights.R

Defines functions LKFindAlphaVarianceWeights

Documented in LKFindAlphaVarianceWeights

LKFindAlphaVarianceWeights <- function(x1, LKinfo, level) {
  # always weight basis functions by scalar alpha
  if (is.null(LKinfo$alphaObject[[level]])) {
    wght <- LKinfo$alpha[[level]]
  }
  else{
    #  compute spatially varying alpha extension if alphaObject
    # is included.
    wght <- LKinfo$alpha[[level]] * c(predict(LKinfo$alphaObject[[level]], x1) )
  }
  return(wght)
}

Try the LatticeKrig package in your browser

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

LatticeKrig documentation built on Oct. 10, 2024, 1:07 a.m.