ssa_trans: Equivalence classes for the transitive closure of a matrix

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/ssa.R

Description

Equivalence classes under the transitive closure

Usage

1

Arguments

r

an adjancency matrix

cut

threshold value

Value

value

equivalence classes used to define groups

Note

~~further notes~~

Author(s)

Patrick Crutcher

See Also

~~objects to See Also as help, ~~~

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(r,cut) {
    s<-ifelse(abs(r)>cut,1,0)
    v<-warshall(s)
    h<-unique(v)
    return(apply(h,1,function(v) which(v==1)))
  }

ssa documentation built on May 2, 2019, 5:54 p.m.

Related to ssa_trans in ssa...