RDKit
Open-source cheminformatics and machine learning.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MetricFuncs.h File Reference
#include <cmath>
#include <DataStructs/BitOps.h>

Go to the source code of this file.

Namespaces

 RDDataManip
 

Functions

template<typename T1 , typename T2 >
double RDDataManip::EuclideanDistanceMetric (const T1 &v1, const T2 &v2, unsigned int dim)
 return the Euclidean distance between two vectors More...
 
template<typename T1 , typename T2 >
double RDDataManip::TanimotoDistanceMetric (const T1 &bv1, const T2 &bv2, unsigned int dim)
 return the Tanimoto distance (1-TanimotoSimilarity) between two bit vectors More...
 
template<typename T1 , typename T2 >
double RDDataManip::TanimotoSimilarityMetric (const T1 &bv1, const T2 &bv2, unsigned int dim)
 return the Tanimoto similarity between two bit vectors More...