Files
rdkit/Code/Geometry/GridUtils.h
Greg Landrum 8272de5b99 reformatting
2007-03-16 06:06:39 +00:00

31 lines
783 B
C++

//
// Copyright (C) 2003-2006 Rational Discovery LLC
//
// @@ All Rights Reserved @@
//
#ifndef _GRIDUTILS_H_20050126
#define _GRIDUTILS_H_20050126
namespace RDGeom {
//! calculate the tanimoto distance between the shapes encoded on two grids
/*!
tanimoto(S1,S2) = 1 - ( | S1&S2 | / | S1|S2 | )
*/
template<class GRIDTYPE> double tanimotoDistance(const GRIDTYPE &grid1,
const GRIDTYPE &grid2);
//! calculate the protrude distance between the shapes encoded on two grids
/*!
protrude(S1,S2) = ( | S1|S2 | - | S1&S2 | ) / | S1 |
*/
template<class GRIDTYPE> double protrudeDistance(const GRIDTYPE &grid1,
const GRIDTYPE &grid2);
}
#endif