R/CCS.R

Defines functions CCS_cat CCS

Documented in CCS CCS_cat

################################################################################
##                         Chen, Chen and Su (2016)                           ##
##                                                                            ##
################################################################################
CCS <- function(X1, X2, dist.fun = stats::dist, graph.fun = MST, 
                n.perm = 0, dist.args = NULL, graph.args = NULL, seed = 42) {
  gTestWrapper(X1, X2, dist.fun, graph.fun, n.perm, dist.args, graph.args, 
               type = "weighted", seed = seed)
}

CCS_cat <- function(X1, X2, dist.fun, agg.type, graph.type = "mstree",
                    K = 1, n.perm = 0, seed = 42) {
  gTestWrapperCat(X1, X2, dist.fun, agg.type, graph.type, K, n.perm, 
                  type = "weighted", seed = seed)
}

Try the DataSimilarity package in your browser

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

DataSimilarity documentation built on April 3, 2025, 9:39 p.m.