comp.trans.mat: Compute transition matrix

View source: R/network.functions.R

comp.trans.matR Documentation

Compute transition matrix

Description

Compute the transition matrix starting from a vector of subsequent classifications

Usage

comp.trans.mat(SOM, start = 1)

Arguments

SOM

a kohonen object on which transitions between neurons will be computed

start

a vector containing the start frames of each replica (usually contained in trj$start if replicas were merged with cat_trj)

Value

A matrix of pairwise transitions between neurons

Author(s)

Stefano Motta stefano.motta@unimib.it

Examples

#Read example SOM data
som_model <- readRDS(system.file("extdata", "SOM_HIFa.rds", package = "SOMMD"))
#Compute transition Matrix
tr_mat <- comp.trans.mat(som_model, start = 1)

SOMMD documentation built on Oct. 2, 2024, 5:07 p.m.