Research Article

Spectroscopic Detection of Caries Lesions

Pseudocode 5

Pseudocode for selecting the set of rules. Here is the set of training samples and MAXRULECOUNT = 5.
SELECT-RULES( )
// Select the set of rules for given set of samples
// Use local variable, set of rules
    // Accuracy with current set of rules
    // Current set of rules
  for     to  MAXRULECOUNT
    = FIND-NEW-RULE( , )
    = CLASSIFY-SAMPLES( , ) // Classification accuracy
   if  
    return    // New rule did not help
= +  // Add new rule to set
  return