// $Id$ // // Copyright (C) 2003-2007 Rational Discovery LLC // // @@ All Rights Reserved @@ // #include "MaxMinPicker.h" #include #include #include #include namespace RDPickers { RDKit::INT_VECT MaxMinPicker::pick(const double *distMat, unsigned int poolSize, unsigned int pickSize) const { CHECK_INVARIANT(distMat, "Invalid Distance Matrix"); if(poolSize maxOFmin) { maxOFmin = minTOi; pick = i; plri = pli; } } // add the new pick to picks and remove it from the pool picks.push_back(pick); pool.erase(plri); } return picks; } }