Learn R Programming

CVD (version 1.0.2)

Color.Vision.VingrysAndKingSmith: Scoring the results of the "D-15", "D-15DS" or "FM1OO-Hue" tests

Description

Color.Vision.VingrysAndKingSmith takes a vector with cap numbers from the "D-15", "D-15DS" or "FM1OO-Hue" tests and outputs the score by the method from Vingrys and King-Smith.

Usage

Color.Vision.VingrysAndKingSmith(capnumbers=NULL,testType='D-15',silent=TRUE)

Arguments

capnumbers
vector with cap numbers
testType
test type, one of "D-15", "D-15DS" or "FM1OO-Hue"
silent
logical, if TRUE then the function will send output to the screen, similarly to the original version

Value

References

Vingrys, A.J. and King-Smith, P.E. (1988). A quantitative scoring technique for panel tests of color vision. Investigative Ophthalmology and Visual Science, 29, 50-63.

Examples

Run this code
Color.Vision.VingrysAndKingSmith(1:15,silent=FALSE)
#result from the original GW Basic version:
#SUMS OF U AND V              41.25999     -4.92
# ANGLE MAJ RAD MIN RAD TOT ERR S-INDEX C-INDEX
#    61.98     9.23     6.71    11.42     1.38     1.00
Color.Vision.VingrysAndKingSmith(1:15,'D-15DS',silent=FALSE)
#result from the original GW Basic version:
#SUMS OF U AND V              26.86001     -38.69
# ANGLE MAJ RAD MIN RAD TOT ERR S-INDEX C-INDEX
#    61.44     5.12     3.60     6.26     1.42     1.00
Color.Vision.VingrysAndKingSmith(1:85, 'FM1OO-Hue',silent=FALSE)
#result from the original GW Basic version:
#SUMS OF U AND V              423.7896      203.7294
# ANGLE MAJ RAD MIN RAD TOT ERR S-INDEX C-INDEX
#    54.15     2.53     1.97     3.20     1.28     1.00

Run the code above in your browser using DataLab