Runs basic sanity checks on a noise matrix: numeric, finite, expected
dimensions. Returns an rcdiag_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, as returned by
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.