Skip to contents

Heuristically selects spatial/temporal smoothing and robust-TV weights based on voxel spacing, repetition time, and a noise estimate.

Usage

recommend_params(
  vec,
  mask = NULL,
  tr = NULL,
  target_fwhm_mm = 5,
  sigma_mppca = NULL
)

Arguments

vec

4D fMRI array or `NeuroVec`.

mask

Optional 3D logical/0-1 mask.

tr

Optional repetition time (seconds). Defaults to 2.

target_fwhm_mm

Target spatial FWHM in millimeters.

sigma_mppca

Optional pre-computed noise sigma. When `NULL`, noise is estimated with `estimate_sigma_rician`.

Value

A list with fields `lambda_s`, `lambda_t`, `sigma_sp`, `sigma_t`, `sigma_r`.