generate_fragility_matrix: generate_fragility_matrix

View source: R/fragility_functions.R

generate_fragility_matrixR Documentation

generate_fragility_matrix

Description

This function generates the NxJ fragility matrix, where N is the number of electrodes and J is the number of timewindows.

Usage

generate_fragility_matrix(A, elec, lim = 0+1i, ncores)

Arguments

A

NxNxJ adjacency array generated by generate_adj_array.

elec

Character or integer vector containing all the included electrodes.

lim

Optional parameter setting the eigenvalue used for fragility calculations. Must be an imaginary or complex number with a absolute value greater than or equal to 1. Default lim is 1i.

Value

List containing the raw fragility data (lower number = more fragile), normalized fragility data from 0 to 1 (1 is most fragile), and average fragility data across all time windows.

Examples

f_info <- generate_fragility_matrix(
    A = adj_info$A, 
    elec = c(1:24,26:36,42:43,46:54,56:70,72:95)
)

ozmosis17/Fragility documentation built on March 22, 2023, 2:16 a.m.