Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detrend function #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add detrend function #188

wants to merge 2 commits into from

Conversation

mmccrackan
Copy link
Contributor

This branch adds a detrend function that duplicates the functionality in sotodlib's detrend_tod function for 1D or 2D arrays (sotodlib supports higher dimensions, but I haven't reproduced that here for now). It has mean, median (using GSL median which is much faster than a std::sort approach), and linear detrending along the rows of an array.

This is primarily intended to be used in an upcoming Welch PSD function but is also standalone, so the underlying function can be run sequentially and called within a parallel loop inside another function (more efficient for the Welch PSD calculation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant