utils.h File Reference

#include "types.h"
#include <RDGeneral/Invariant.h>
#include <boost/random.hpp>

Go to the source code of this file.

Namespaces

namespace  RDKit

Typedefs

typedef boost::minstd_rand RDKit::rng_type
typedef boost::uniform_int RDKit::uniform_int
typedef boost::uniform_real RDKit::uniform_double
typedef
boost::variate_generator
< rng_type &, uniform_int > 
RDKit::int_source_type
typedef
boost::variate_generator
< rng_type &, uniform_double > 
RDKit::double_source_type

Functions

double RDKit::computeIntVectPrimesProduct (const INT_VECT &ring)
 compute the product of the set of primes corresponding to the values in an INT_VECT
bool RDKit::feq (double v1, double v2, double tol=1e-4)
 floating point comparison with a tolerance
rng_type & RDKit::getRandomGenerator (int seed=-1)
 Optionally seed and return a reference to the global (Boost) random generator.
double RDKit::getRandomVal (int seed=-1)
template<class T>
unsigned int RDKit::countSwapsToInterconvert (const T &ref, T probe)

Variables

const int RDKit::FILE_MAXLINE = 256
 an assumed maximum length for lines read from files


Generated on Tue Oct 7 06:10:11 2008 for RDCode by  doxygen 1.5.5