Snippets by category: Math Functions

Packages Of Snippets

Snippet ID Title
3
Movements are a major source of artifacts in functional Near-Infrared Spectroscopy (fNIRS). Several algorithms have been developed for motion artifact correction of fNIRS data, including Principal Component Analysis (PCA), targeted Principal Component Analysis (tPCA), Spline Interpolation (SI), and Wavelet Filtering (WF). WF is based on removing wavelets with coefficients deemed to be outliers based on their standardized scores, and it has proven to be effective on both synthetized and real data. However, when the SNR is high, it can lead to a reduction of signal amplitude. This may occur because standardized scores inherently adapt to the noise level, independently of the shape of the distribution of the wavelet coefficients. Higher-order moments of the wavelet coefficient distribution may provide a more diagnostic index of wavelet distribution abnormality than its variance. Here we introduce a new procedure that relies on eliminating wavelets that contribute to generate a large fourth-moment (i.e., kurtosis) of the coefficient distribution to define "outliers" wavelets (kurtosis-based Wavelet Filtering, kbWF).
4
Toolbox to retrieve and deconvolve the hemodynamic response function from resting state BOLD data.

Matlab version, standalone and SPM plugin

Snippets

Snippet ID Title
3
Ged Ridgwayget FLIRT affine matrix from file as written by flirt -omat

Example:
mat = flirtmat_read(fname)
4
Ged Ridgwaysave a 4-by-4 matrix to a file as handled by flirt -init

Example:
flirtmat_write(fname, affinemat)