View source: R/fragility_functions.R
generate_fragility_matrix | R Documentation |
This function generates the NxJ fragility matrix, where N is the number of electrodes and J is the number of timewindows.
generate_fragility_matrix(A, elec, lim = 0+1i, ncores)
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. |
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.
f_info <- generate_fragility_matrix(
A = adj_info$A,
elec = c(1:24,26:36,42:43,46:54,56:70,72:95)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.