R/tricube.R

# based on ideas by Miquel-Angel Garcia-Lopez
gwr.tricube <- function (dist2, d) {
      d3 <- d^3
      dist3 <- dist2^1.5
      w <- ifelse(dist3 > d3, 0, (1-(dist3/d3))^3)
      w
}

Try the spgwr package in your browser

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

spgwr documentation built on June 22, 2024, 10:47 a.m.