R/getGraph.R

Defines functions getGraph

Documented in getGraph

getGraph <- function(D) {
  mat = abs(crossprod(D))
  diag(mat) = 0
  return(graph.adjacency(mat, mode=c("upper")))
}

Try the genlasso package in your browser

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

genlasso documentation built on Aug. 22, 2022, 9:09 a.m.