pyhrf.sandbox.physio_params.
buildOrder1FiniteDiffMatrix_central
(size, dt)¶Returns a toeplitz matrix for central differences to correct for errors on the first and last points (due to the fact that there is no rf[-1] or rf[size] to average with):
pyhrf.sandbox.physio_params.
calc_linear_rfs
(simu_brf, simu_prf, phy_params, dt, normalized_rfs=True)¶Calculate ‘prf given brf’ and ‘brf given prf’ based on the a linearization around steady state of the physiological model as described in Friston 2000
Note: These calculations do not account for any rescaling between brf and prf. This means the input simu_brf, simu_prf should NOT be rescaled.
pyhrf.sandbox.physio_params.
create_bold_from_hbr_and_cbv
(physiological_params, hbr, cbv)¶Compute BOLD signal from HbR and blood volume variations obtained by a physiological model
pyhrf.sandbox.physio_params.
create_evoked_physio_signals
(physiological_params, paradigm, neural_efficacies, dt, integration_step=0.05)¶Generate evoked hemodynamics signals by integrating a physiological model.
Parameters: |
|
---|---|
Returns: | All generated signals, indexes of the first axis correspond to:
|
Return type: | np.array((nb_signals, nb_scans, nb_voxels), float) |
pyhrf.sandbox.physio_params.
create_k_parameters
(physiological_params)¶Create field strength dependent parameters k1, k2, k3
pyhrf.sandbox.physio_params.
create_omega_prf
(primary_brf, dt, phy_params)¶create prf from omega and brf
pyhrf.sandbox.physio_params.
create_physio_brf
(physiological_params, response_dt=0.5, response_duration=25.0, return_brf_q_v=False)¶Generate a BOLD response function by integrating a physiological model and setting its driving input signal to a single impulse.
Parameters: |
|
---|---|
Returns: |
|
pyhrf.sandbox.physio_params.
create_physio_prf
(physiological_params, response_dt=0.5, response_duration=25.0, return_prf_q_v=False)¶Generate a perfusion response function by setting the input driving signal of the given physiological model with a single impulse.
Parameters: |
|
---|---|
Returns: |
|
pyhrf.sandbox.physio_params.
create_tbg_neural_efficacies
(physiological_params, condition_defs, labels)¶Create neural efficacy from a truncated bi-Gaussian mixture.
Parameters: |
|
---|---|
Returns: |
|
pyhrf.sandbox.physio_params.
linear_rf_operator
(rf_size, phy_params, dt, calculating_brf=False)¶pyhrf.sandbox.physio_params.
phy_integrate_euler
(phy_params, tstep, stim, epsilon, Y0=None)¶Integrate the ODFs of the physiological model with the Euler method.
Parameters: |
|
---|---|
Returns: |
|