edu.indiana.iucbrf.ccbr.caselistrefiner
Class ThresholdCaseListRefiner

java.lang.Object
  extended by edu.indiana.iucbrf.ccbr.caselistrefiner.AbstractCaseListRefiner
      extended by edu.indiana.iucbrf.ccbr.caselistrefiner.ThresholdCaseListRefiner
All Implemented Interfaces:
CaseListRefiner, java.io.Serializable

public class ThresholdCaseListRefiner
extends AbstractCaseListRefiner

In refining a case list, the difference between each case and the current problem is calculated. Those that are above a threshold are removed from further consideration in this episode. Remaining cases are ordered by distance from the problem, shortest distance first.

See Also:
Serialized Form

Field Summary
protected  double differenceThreshold
           
 
Constructor Summary
protected ThresholdCaseListRefiner()
           
  ThresholdCaseListRefiner(double differenceThreshold)
          Creates a new instance of ThresholdCaseListRefiner
 
Method Summary
 RetrievalResults refineCaseList(Problem problemSoFar, Question questionAsked, Feature answerGiven, RetrievalResults casesUnderConsideration, CCBRDomain domain)
          Returns a modified ArrayList of potentially useful cases, based on the problem developed so far, the question that was just asked, the answer obtained, the cases under consideration so far, and the domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

differenceThreshold

protected double differenceThreshold
Constructor Detail

ThresholdCaseListRefiner

protected ThresholdCaseListRefiner()

ThresholdCaseListRefiner

public ThresholdCaseListRefiner(double differenceThreshold)
Creates a new instance of ThresholdCaseListRefiner

Method Detail

refineCaseList

public RetrievalResults refineCaseList(Problem problemSoFar,
                                       Question questionAsked,
                                       Feature answerGiven,
                                       RetrievalResults casesUnderConsideration,
                                       CCBRDomain domain)
Description copied from interface: CaseListRefiner
Returns a modified ArrayList of potentially useful cases, based on the problem developed so far, the question that was just asked, the answer obtained, the cases under consideration so far, and the domain.