|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcbr.framework.Reasoner
public class Reasoner
Reasoner
provides a collection of static, utility methods to access a case base
and perform reasoning tasks such as comparing a target case to source cases.
Constructor Summary | |
---|---|
Reasoner()
|
Method Summary | |
---|---|
static List<Case> |
getCasesOverSimilarityThreshold(double threshold,
Case targetCase,
CaseBase caseBase)
Retrieves the cases from the case base that are over (or equal to) a specified similarity threshold,
when compared to the targetCase . |
static Case |
getMostSimilarCase(Case targetCase,
CaseBase caseBase)
Retrieves the case from the case base that most resembles the target case. |
static List<Case> |
getNMostSimilarCases(int n,
Case targetCase,
CaseBase caseBase)
Given a novel scenario represented as a case find the N most similar cases in the caseBase provided. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Reasoner()
Method Detail |
---|
public static List<Case> getNMostSimilarCases(int n, Case targetCase, CaseBase caseBase)
N
most similar cases in the caseBase
provided.
n
- the number of similar cases to returntargetCase
- the novel scenariocaseBase
- the collection of cases to test against
public static Case getMostSimilarCase(Case targetCase, CaseBase caseBase)
case
from the case base that most resembles the target case.
targetCase
- the novel casecaseBase
- the source cases
public static List<Case> getCasesOverSimilarityThreshold(double threshold, Case targetCase, CaseBase caseBase)
cases
from the case base that are over (or equal to) a specified similarity threshold,
when compared to the targetCase
.
threshold
- the similarity thresholdtargetCase
- the novel casecaseBase
- the source cases
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |