R/Lhat.R

Defines functions Lhat

Documented in Lhat

Lhat <-
function(X, r = NULL, ReferenceType = "", NeighborType = "", CheckArguments = TRUE) {
  if (CheckArguments) {
    CheckdbmssArguments()
  }
  
  K <- Khat(X, r, ReferenceType, NeighborType)
  Columns <- names(K)[-1]
  for(i in Columns) {
    K[[i]] <- sqrt(K[[i]]/pi)-K$r
  }
  attr(K, "ylab") <- attr(K, "yexp") <- quote(L(r))
  attr(K, "fname") <- "L"
  return (K)
}

Try the dbmss package in your browser

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

dbmss documentation built on May 31, 2023, 8:30 p.m.