|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.SimilarityCalculator<T>
public abstract class SimilarityCalculator<T>
Descriptor similarity calculation can be performed using SimilarityCalculator. This class represents a metrics and subclasses must contain all parameters that may required. The SimilarityCalculatorFactory can be used to create an object of this type.
| Constructor Summary | |
|---|---|
SimilarityCalculator()
|
|
| Method Summary | |
|---|---|
abstract float |
getDissimilarity(T fp)
Gets the dissimilarity value according to previously defined metric and its parameters. |
abstract float |
getSimilarity(T fp)
Gets the similarity value according to previously defined metric and its parameters. |
void |
setQueryFingerprint(T fp)
Sets the query fingerprint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimilarityCalculator()
| Method Detail |
|---|
public void setQueryFingerprint(T fp)
throws chemaxon.descriptors.SimilarityException
fp -
chemaxon.descriptors.SimilarityException
public abstract float getSimilarity(T fp)
throws chemaxon.descriptors.SimilarityException
setQueryFingerprint
fp - fingerprint type is defined by the subclass using generics.
chemaxon.screen.SimilarityException - If query has not been setted before or target and query fingerprint has
different array length.
chemaxon.descriptors.SimilarityException
public abstract float getDissimilarity(T fp)
throws chemaxon.descriptors.SimilarityException
setQueryFingerprint
fp - fingerprint type is defined by the subclass using generics
chemaxon.screen.SimilarityException - If query has not been setted before or target and query fingerprint has
different array length.
chemaxon.descriptors.SimilarityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||