Skip to content

RF: refactor DCT-II into more visible function #417

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthew-brett
Copy link
Member

Make DCT-II basis an API function, use this function for DCT-II drift in
design_matrix.

@jbpoline - would you mind having a look at this one?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 87.17% when pulling 7fe43be on matthew-brett:add-dct-ii into dfbee72 on nipy:master.

@codecov-io
Copy link

codecov-io commented Sep 24, 2016

Codecov Report

Merging #417 into master will increase coverage by -0.01%.

@@            Coverage Diff             @@
##           master     #417      +/-   ##
==========================================
- Coverage   83.22%   83.22%   -0.01%     
==========================================
  Files         301      301              
  Lines       28149    28140       -9     
  Branches     3279     3278       -1     
==========================================
- Hits        23428    23419       -9     
  Misses       3719     3719              
  Partials     1002     1002
Impacted Files Coverage Δ
nipy/modalities/fmri/design_matrix.py 83.64% <100%> (-0.88%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f135947...f3be3ee. Read the comment docs.

@matthew-brett
Copy link
Member Author

@bthirion - will the requirement for continuous samples in time be a problem for you?

https://github.com/nipy/nipy/pull/417/files#diff-9967264e8820787d766a0f3ee1e4ae67R42

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 87.174% when pulling eba5309 on matthew-brett:add-dct-ii into dfbee72 on nipy:master.

@matthew-brett
Copy link
Member Author

@jbpoline - any comments?

@matthew-brett
Copy link
Member Author

@jbpoline @bthirion - another friendly reminder asking for comments.

Use dedicated function for _cosine basis.

This refactoring will require continuous times, otherwise it will raise
an error.  In any case, I believe that the values returned when times
are not continuous are not valid:

a) The current function assumes that all differences in volume times are
equal to the difference in the first two volume times, and;
b) The DCT values should (I believe) reflect the number of `dt`
intervals, not the index into the time vector, as currently.
@matthew-brett
Copy link
Member Author

Gentlemen - I think the current function will be incorrect when the frametimes are not all equally spaced, do you agree?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 86.634% when pulling f3be3ee on matthew-brett:add-dct-ii into f135947 on nipy:master.

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.

3 participants