Research Article
Spectroscopic Detection of Caries Lesions
Pseudocode 4
Pseudocode for selecting a new rule.
FIND-NEW-RULE(, ) | // Select a new rule, given a set of rules and a set of samples | // Use local variables, rules and | = 0.0 // Best accuracy found so far | for to WAVELENOPTIONCOUNT + 1 | = GET-WAVELENGTH-INDEX(, ) | .limitIndex = // Rule’s wavelength , by index | = GET-THRESHOLDS(, ) | for = 1 to .length | .limitThreshold = // Rule’s threshold intensity | .limitType = UPPER | = CLASSIFY-SAMPLES( + , ) // Classification accuracy | if | | | .limitType = LOWER | = CLASSIFY-SAMPLES( + , ) // Classification accuracy | if | | | return // Best new rule found |
|