R/findrank.R

Defines functions findrank

Documented in findrank

###
### R routines for the R package dlnm (c)
#
findrank <- function(X) {
#
################################################################################
#
  ev <- eigen(X,symmetric=TRUE,only.values=TRUE)$values
  rank <- sum(ev>max(ev)*.Machine$double.eps*10)
#  
  return(rank)
}

Try the dlnm package in your browser

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

dlnm documentation built on Oct. 7, 2021, 5:09 p.m.