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

Spectral DCM with external input and more robust measurements #345

Merged
merged 4 commits into from
Mar 24, 2024

Conversation

david-hofmann
Copy link
Member

Using the irreducible flag as Haris had suggested some time ago, I could make the code much more robust w.r.t. pecularities of model assembly (makes the code more robust for use with GUI) or potential MTK changes.

In addition the option to add external input in LinearNeuralMass is now also implemented. Note that for some unclear reason SPM12 adds the external input parameter even if no external input is provided - here we reproduced that behavior.

…machinery to deal with it in blox_utilities.jl: function get_states_without_drive
… external input. Implementation differs from SPM12 since C parameter is not being overwritten when transfer function is being computed but the user-set value is kept.
…w.r.t. potential changes in MTK and pecularities about model assembly. It also deprecates the get_hemodynamic_observers function.
…al) based on Haris's comment to use irreducible to maintain measurement equations which are algebraic equations of dynamic variables. This makes in particular transferfunction_fmri much more elegant and robust.
@david-hofmann david-hofmann merged commit 245915c into master Mar 24, 2024
2 checks passed
@david-hofmann david-hofmann deleted the sDCM_add_external_input branch March 24, 2024 01:40
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