jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.descriptors.metrics
Interface FloatVectorComparator

All Superinterfaces:
MetricMetadata, Serializable
All Known Implementing Classes:
FloatVectorMetrics

@Beta
public interface FloatVectorComparator
extends MetricMetadata, Serializable

Float vector based calculations.

Please note that this interface is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.

Author:
Laszlo Antal

Nested Class Summary
static class FloatVectorComparator.Util
          Various utility methods related to float vector comparation.
 
Method Summary
 double calculateFloatVectorDissimilarity(float[] target, float[] query)
          Calculate dissimilarity.
 double calculateFloatVectorSimilarity(float[] target, float[] query)
          Calculate similarity.
 double getLowerBoundForFloatVectors()
          Possible lowest value of similarity/dissimilarity scores.
 double getUpperBoundForFloatVectors()
          Possible highest value of similarity/dissimilarity scores.
 
Methods inherited from interface com.chemaxon.descriptors.metrics.MetricMetadata
isDissimilarityZeroIFFEquals, isMetricSpace, isNonNegative, isSymmetric, isTriangeInequalityHolds
 

Method Detail

calculateFloatVectorDissimilarity

double calculateFloatVectorDissimilarity(float[] target,
                                         float[] query)
Calculate dissimilarity.

Parameters:
target - target vector
query - query vector
Returns:
dissimilarity value

calculateFloatVectorSimilarity

double calculateFloatVectorSimilarity(float[] target,
                                      float[] query)
Calculate similarity.

Parameters:
target - target vector
query - query vector
Returns:
similarity value

getLowerBoundForFloatVectors

double getLowerBoundForFloatVectors()
Possible lowest value of similarity/dissimilarity scores.

Returns:
possible lowest value of similarity/dissimilarity scores

getUpperBoundForFloatVectors

double getUpperBoundForFloatVectors()
Possible highest value of similarity/dissimilarity scores.

Returns:
possible highest value of similarity/dissimilarity scores

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)