|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.method.retrieve.NNretrieval.similarity.InContextLocalSimilarityFunction
public abstract class InContextLocalSimilarityFunction
Extension of the LocalSimilarityFunction for measures that need data about other attributes of the case or current CaseComponent.
Through the inherited class-attributes subclasses can use information about the "context" (other neighbour attributes) of the compared attribute.
The context information is set by the StandardGlobalSimilarityFunction in a transparent way.
An example is jcolibri.method.retrieve.NNretrieval.similarity.local.textual.LuceneTextSimilarity
StandardGlobalSimilarityFunction
,
LuceneTextSimilarity
Field Summary | |
---|---|
protected CBRCase |
_case
case that this attribute belongs to |
protected CBRQuery |
_query
query that this attribute belongs to |
protected java.lang.String |
attribute
name of the attribute |
protected CaseComponent |
componentOfCase
component of the case that this attribute belongs to |
protected CaseComponent |
componentOfQuery
component of the query that this attribute belongs to |
Constructor Summary | |
---|---|
InContextLocalSimilarityFunction()
|
Method Summary | |
---|---|
void |
setContext(CaseComponent componentOfCase,
CaseComponent componentOfQuery,
CBRCase _case,
CBRQuery _query,
java.lang.String attributeName)
Method used by the StandardGlobalSimilarityFunction (or any other future implementation of the GlobalSimilarityFunction) to set the context of this LocalSimilarityFunction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jcolibri.method.retrieve.NNretrieval.similarity.LocalSimilarityFunction |
---|
compute, isApplicable |
Field Detail |
---|
protected CaseComponent componentOfCase
protected CaseComponent componentOfQuery
protected CBRCase _case
protected CBRQuery _query
protected java.lang.String attribute
Constructor Detail |
---|
public InContextLocalSimilarityFunction()
Method Detail |
---|
public void setContext(CaseComponent componentOfCase, CaseComponent componentOfQuery, CBRCase _case, CBRQuery _query, java.lang.String attributeName)
componentOfCase
- that this attribute belongs tocomponentOfQuery
- that this attribute belongs to_case
- that this attribute belongs to_query
- that this attribute belongs toattributeName
- is the name of the attribute
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |