Runs basic sanity checks on a noise matrix: numeric, finite,
expected dimensions. Returns an rcisignal_diag_result() with
status "pass", "warn", or "fail" rather than aborting,
because users typically want to see all problems at once, not
just the first.
Arguments
- mat
A numeric matrix, typically from
read_noise_matrix().- expected_pixels
Optional integer. If supplied, checks that
nrow(mat) == expected_pixels. For example, 128*128 = 16384.- expected_stimuli
Optional integer. If supplied, checks that
ncol(mat) == expected_stimuli.