CarrollNeitzNomogramTest
>Psychtoolbox>PsychColorimetricData
maxAbsDiff = CarrollNeitzNomogramTest
Validate CarrollNeitzNomogram against the original Neitz-lab spectsens.m.
The PTB nomogram returns absorbance normalized to a peak of 1. The
original spectsens helper returns absorptance with optical density and
a normalization by the peak absorptance, 1-10^-OD. To compare like with
like, we:
1) compute PTB absorbance with CarrollNeitzNomogram;
2) convert to absorptance with AbsorbanceToAbsorptance;
3) normalize by the peak absorptance to match spectsens;
4) normalize the sampled spectsens result to peak 1, matching the PTB
convention applied inside CarrollNeitzNomogram when S(2) <= 1.
The test plots one panel each for the L, M, and S cones and reports the
maximum absolute difference across all wavelengths and cone classes.
History:
2026-04-10 dhb Wrote it.
2026-04-10 Codex Implement validation against original spectsens.
Psychtoolbox/PsychColorimetricData/CarrollNeitzNomogramTest.m