Research Article

Spectroscopic Detection of Caries Lesions

Pseudocode 6

Pseudocode for computing the median rule set. In this study FOLDERCOUNT = 4.
COMPOSE-MEDIAN-RULES( )
// Compose median rule set from given set of rule sets
// = ( , , , ), = FOLDERCOUNT
// Use local variables, sets of rules and , and rule
  
   = MEDIAN( .length, .length, , .length)
  for     to  
  // Compose temporary rule set, = ( , , , )
  // If possible, have
  // Each rule in appears in at most one temporary rule set
= COMPOSE-TEMP-SET( )
.limitIndex = MEDIAN( .limitIndex, , .limitIndex)
.limitThreshold = MEDIAN( .limitThreshold, , .limitThreshold)
.limitType = MEDIAN( .limitType, , .limitType)
  return