Research Article

Spectroscopic Detection of Caries Lesions

Pseudocode 2

Pseudocode for computing the th wavelength option for a rule.
GET-WAVELENGTH-INDEX( , )
  // Get the th wavelength option for a rule, given a set of samples
  // For first wavelength,
   = (X.maxWavelengthX.minWavelength)/WAVELENOPTIONCOUNT
   = X.minWavelength + ( − 1)
  // Get the index of the measured wavelength , which is closest to
   = CLOSEST-INDEX( )
  return