Research Article

Spectroscopic Detection of Caries Lesions

Pseudocode 1

Pseudocode for classifying a sample. Samples in the positive class are carious, and samples in the negative class are healthy. A sample is a vector, where each component   equals the normalized intensity at a given wavelength .
CLASSIFY( , )
// Classify sample using the set of rules
  for     to   .length
.limitThreshold // Threshold intensity
.limitIndex // Index of wavelength
if   .limitType   UPPER  and  
  return (+1)
elseif   .limitType   LOWER  and  
  return  (+1)
  return (−1) // No rule indicated sample as positive