find_adj_matrix: find_adj_matrix

View source: R/fragility_functions.R

find_adj_matrixR Documentation

find_adj_matrix

Description

Finds the adjacency matrix A for a given time window. For use within the generate_adj_array function.

Usage

find_adj_matrix(state_vectors, N, t_window, nlambda)

Arguments

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

Examples

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)

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