utils.h File Reference

#include "types.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)

Variables

const int RDKit::NUM_PRIMES_AVAIL = 1000
 the number of primes available and stored
int RDKit::firstThousandPrimes [NUM_PRIMES_AVAIL]
const int RDKit::FILE_MAXLINE = 256
 an assumed maximum length for lines read from files


Generated on Sat May 24 08:36:33 2008 for RDCode by  doxygen 1.5.3