|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.utils.similarity.DefaultSimilarityHandler
public class DefaultSimilarityHandler
The DefaultSimilarityHandler handles basic similarity computations and permits the attaching of custom handlers
| Constructor Summary | |
|---|---|
DefaultSimilarityHandler()
Constructor for the DefaultSimilarityHandler object |
|
| Method Summary | |
|---|---|
void |
addHandler(SimilarityHandler sm)
Adds a feature to the Handler attribute of the DefaultSimilarityHandler object |
double |
computeSimilarity(java.lang.Object one,
java.lang.Object two,
double maxDiff,
double maxSim)
compute the similarty between one and two scaled to fit maxDiff and maxSim |
double |
getSimilarity(java.lang.Object one,
java.lang.Object two,
double maxDiff,
double maxSim)
Gets the similarity attribute of the DefaultSimilarityHandler object |
boolean |
handles(java.lang.Object one,
java.lang.Object two)
can this handler compute a similarity for these two chunks |
void |
removeHandler(SimilarityHandler sm)
Description of the Method |
void |
setSimilarity(IChunk one,
IChunk two,
double sim)
Sets the similarity attribute of the DefaultSimilarityHandler class |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSimilarityHandler()
| Method Detail |
|---|
public void addHandler(SimilarityHandler sm)
sm - The feature to be added to the Handler attributepublic void removeHandler(SimilarityHandler sm)
sm - Description of the Parameter
public double getSimilarity(java.lang.Object one,
java.lang.Object two,
double maxDiff,
double maxSim)
one - Description of the Parametertwo - Description of the ParametermaxDiff - Description of the ParametermaxSim - Description of the Parameter
public boolean handles(java.lang.Object one,
java.lang.Object two)
handles in interface SimilarityHandlerone - Description of the Parametertwo - Description of the Parameter
public double computeSimilarity(java.lang.Object one,
java.lang.Object two,
double maxDiff,
double maxSim)
computeSimilarity in interface SimilarityHandlerone - Description of the Parametertwo - Description of the ParametermaxDiff - Description of the ParametermaxSim - Description of the Parameter
public void setSimilarity(IChunk one,
IChunk two,
double sim)
one - The new similarity valuetwo - The new similarity valuesim - The new similarity value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||