Skip to content

Instantly share code, notes, and snippets.

View ellisdg's full-sized avatar

David G Ellis ellisdg

View GitHub Profile
@mwaskom
mwaskom / film_gls.py
Last active March 3, 2023 19:44
Python implementation of FILM GLS algorithm
"""Python implementation of FILM GLS algorithm.
Plans for development:
We will need the following functionality:
GLS fit for 4D timeseries (i, j, k, t), with smoothing in volume or on surface
GLS for for 2D array (time x vox) array, with single prewhitening matrix
We'll call the first "local" and the latter "regional" prewhitening