ComputeLinkParameters {GraphAlignment}R Documentation

Compute link parameters

Description

Compute the optimal scoring parameters (link score) for a given alignment.

Usage

ComputeLinkParameters(A, B, P, lookupLink, clamp=TRUE)

Arguments

A adjacency matrix for network A
B adjacency matrix for network B
P permutation vector
lookupLink link bin lookup table
clamp clamp values to range when performing bin lookups

Value

The return value is a list containing the self link score matrix (lsSelf) and the link score matrix (ls).

Examples

  ex<-GenerateExample(dimA=22, dimB=22, filling=.5, covariance=.6,
    symmetric=TRUE, numOrths=10, correlated=seq(1,18))
  
  pinitial<-InitialAlignment(psize=34, r=ex$r, mode="reciprocal")
  
  lookupLink<-seq(-2,2,.5)
  linkParams<-ComputeLinkParameters(ex$a, ex$b, pinitial, lookupLink)

[Package GraphAlignment version 1.0-0 Index]