generate_feature_armadillo: This function creates K shifts of a neural events vector...

View source: R/RcppExports.R

generate_feature_armadilloR Documentation

This function creates K shifts of a neural events vector according to the kernel length, K.

Description

This function creates K shifts of a neural events vector according to the kernel length, K.

Arguments

encoding

The neural events vector (same length as BOLD time series)

K

The length of the kernel

Details

This is an internal function that is used inside a while loop by deconvolve_nlreg. Profiling of the algorithm revealed that this is the primary bottleneck, so I ported it to an Rcpp function

Value

A matrix of length(encoding) rows and K columns, where each column contains a successively lagged copy of the encoding vector

Author(s)

Michael Hallquist


PennStateDEPENdLab/dependlab documentation built on April 10, 2024, 5:15 p.m.