edu.indiana.iucbrf.retrieval
Class RisingThresholdRetrieval
java.lang.Object
edu.indiana.iucbrf.retrieval.AbstractRetrieval
edu.indiana.iucbrf.retrieval.ThresholdRetrieval
edu.indiana.iucbrf.retrieval.RisingThresholdRetrieval
- All Implemented Interfaces:
- Retrieval, java.io.Serializable
public class RisingThresholdRetrieval
- extends ThresholdRetrieval
Title:
Description: The same as ThresholdRetrieval, except, if a retrieval yields 0 cases,
then the current threshold is set to multiplier*baseThreshold.
Copyright: Copyright (c) 2005
Company:
- See Also:
- Serialized Form
Method Summary |
RetrievalResults |
getNearest(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
Gets the Case(s) in the case base most similar to a. |
RetrievalResults |
getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext)
|
RetrievalResults |
getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
|
RetrievalResults |
getNearestRec(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
|
double |
getRecentActualThreshold()
|
protected void |
resetThreshold()
|
void |
setMultiplier(double multiplier)
|
void |
setParams(java.lang.Object[] params)
|
protected void |
temporaryIncreaseThreshold()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
multiplier
protected double multiplier
baseThreshold
protected double baseThreshold
recentActualThreshold
protected double recentActualThreshold
RisingThresholdRetrieval
protected RisingThresholdRetrieval()
RisingThresholdRetrieval
public RisingThresholdRetrieval(Domain domain,
double threshold,
double multiplier)
RisingThresholdRetrieval
public RisingThresholdRetrieval(ProblemDifferentiator problemDifferentiator,
double threshold,
double multiplier)
- Creates a new instance of ThresholdRetrieval
setParams
public void setParams(java.lang.Object[] params)
- Specified by:
setParams
in interface Retrieval
- Overrides:
setParams
in class ThresholdRetrieval
setMultiplier
public void setMultiplier(double multiplier)
temporaryIncreaseThreshold
protected void temporaryIncreaseThreshold()
resetThreshold
protected void resetThreshold()
getRecentActualThreshold
public double getRecentActualThreshold()
getNearest
public RetrievalResults getNearest(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
- Gets the Case(s) in the case base most similar to a.
- Specified by:
getNearest
in interface Retrieval
- Overrides:
getNearest
in class AbstractRetrieval
- Parameters:
CB
- The case basep
- The problem
getNearest
public RetrievalResults getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext)
- Specified by:
getNearest
in interface Retrieval
- Overrides:
getNearest
in class AbstractRetrieval
getNearest
public RetrievalResults getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
- Specified by:
getNearest
in interface Retrieval
- Overrides:
getNearest
in class AbstractRetrieval
getNearestRec
public RetrievalResults getNearestRec(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)