opiInitialise_for_SimHenson {OPI} | R Documentation |
opiInitialise_for_SimHenson
Description
Simulates responses using a Frequency of Seeing (FoS) curve.
For internal use only, use opiInitialize()
.
The FoS is modelled as a cumulative Gaussian function over dB with
standard deviation equal to min(cap, exp( A * t + B))
, where
t is the threshold/mean of the FoS in dB.
All values are in dB relative to maxStim
.
Arguments
type |
A single character that is:
|
A |
Coefficient of |
B |
Addend of |
cap |
Maximum dB value for the stdev of the FoS curve. |
maxStim |
The maximum stimulus value (0 dB) in cd/ |
... |
Any other parameters you like, they are ignored. |
Value
A list with elements:
-
err
NULL if initialised, msg otherwise
Examples
# Set up a simple simulation for white-on-white perimetry
chooseOpi("SimHenson")
res <- opiInitialize(type = "C", cap = 6)
if (!is.null(res$err))
stop(paste("opiInitialize() failed:", res$err))