View source: R/fragility_functions.R
find_adj_matrix | R Documentation |
Finds the adjacency matrix A for a given time window. For use within the generate_adj_array function.
find_adj_matrix(state_vectors, N, t_window, nlambda)
state_vectors |
List of 2 state vectors x(t) and x(t+1) generated by generate_state_vectors |
N |
Number of electrodes |
t_window |
Length of one time window |
nlambda |
Number of lambdas to be generated by glmnet cross-validation |
A is the 3D adjacency array in the following example, where k is the timewindow being calculated.
A[,,k] <- find_adj_matrix(state_vectors, N = 85, t_window = 250, nlambda = 16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.