Learn R Programming

OPI (version 3.0.4)

opiInitialise_for_SimGaussian: opiInitialize_for_SimGaussian

Description

Simulates responses using a Frequency of Seeing (FoS) curve.

The FoS is modelled as a cumulative Gaussian function with standard deviation equal to sd as provided and the mean as the true threshold given as tt opiPresent. All values are in dB relative to maxStim.

This is for internal use only, use opiInitialize().

Value

A list with elements:

  • err NULL if initialised, a message otherwise

Arguments

sd

Standard deviation of Cumulative Gaussian.

maxStim

The maximum stimuls value (0 dB) in cd/\(\mbox{m}^2\).

...

Any other parameters you like, they are ignored.

Examples

Run this code
    # Set up a simple simulation for white-on-white perimetry
chooseOpi("SimGaussian")
res <- opiInitialize(sd = 2.5)
if (!is.null(res$err))
  stop(paste("opiInitialize() failed:", res$msg))

Run the code above in your browser using DataLab