R/matddchisqsym.R

Defines functions matddchisqsym

Documented in matddchisqsym

matddchisqsym <-
function(x)  {
  if (!is.folder(x))
    stop("x must be an object of class 'folder'.")

# Computing of the distances  
  distances = diag(0, nrow = length(x))
  dimnames(distances) = list(names(x), names(x))

  for (i in 2:length(x))  for (j in 1:(i-1))  {
      distances[i, j] = distances[j, i] = ddchisqsym(x[[i]], x[[j]])
    }
  as.dist(distances)
}

Try the dad package in your browser

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

dad documentation built on Aug. 30, 2023, 5:06 p.m.