11#ifndef _RD_CORRMATGENERATOR_H_
12#define _RD_CORRMATGENERATOR_H_
16#include <boost/dynamic_bitset.hpp>
60 int i, nd = d_descs.size();
61 int nelem = nd * (nd - 1) / 2;
64 dp_corrMat =
new double[nd * (nd - 1) / 2];
65 for (i = 0; i < nelem; i++) {
85 unsigned int nd = d_descs.size();
89 for (
unsigned int i = 0; i < nd; i++) {
95 for (
unsigned i = 1; i < nd; i++) {
96 unsigned int itab = i * (i - 1) / 2;
98 for (
unsigned int j = 0; j < i; j++) {
100 dp_corrMat[itab + j] += 1;
Pulls in all the BitVect classes.
Abstract base class for storing BitVectors.
a class for bit vectors that are densely occupied
bool setBit(const unsigned int which) override
sets a particular bit and returns its original value
int getNumExamples() const
get the number of examples we used so far to compute the correlation matrix
double * getCorrMat()
Gets a pointer to the correlation matrix.
void setBitIdList(const RDKit::INT_VECT &bitIdList)
Set the list bits that we are interested in correlating.
BitCorrMatGenerator()
A class to generate a correlation matrix for a bunch of fingerprints.
void collectVotes(const BitVect &fp)
For each pair of on bits (bi, bj) in fp increase the correlation count for the pair by 1.
RDKit::INT_VECT getCorrBitList() const
Get the list of bits ID that are used to generate the correlation matrix.
Class used to rank bits based on a specified measure of information.
std::vector< int > INT_VECT