This is a basic demonstration of the way CASP makes a decision on detectablility in an example task: Intensity discrimination of a 1-kHz tone for a single particular presentation. The backend of CASP is designed for adapative nAFC paradigms and the code here calculates the correlation and makes a decision for that single particular presentation.
Note that the code here does not go through the entire adaptive procedure to find the threshold. For a full implementation of the adapative procedure and more details, see Paulick et al. (2024).
This code produces the following output:
Target interval has been correctly identified
L. Paulick, H. Relaño-Iborra, and T. Dau. The Computational Auditory Signal Processing and Perception Model (CASP): A Revised Version. bioRxiv, 2024. [ DOI ]