#include <BALL/SCORING/COMMON/scoringFunction.h>
|
| ScoringFunction () |
|
| ScoringFunction (const ScoringFunction &sf) |
|
| ScoringFunction (Molecule &receptor, Molecule &ligand) |
|
| ScoringFunction (Molecule &receptor, Molecule &ligand, const Options &options) |
|
virtual | ~ScoringFunction () |
|
virtual void | clear () |
|
ScoringFunction & | operator= (const ScoringFunction &sf) |
|
bool | setup () |
|
bool | setup (Molecule &receptor, Molecule &ligand) |
|
bool | setup (Molecule &receptor, Molecule &ligand, const Options &options) |
|
virtual bool | specificSetup () throw (Exception::TooManyErrors) |
|
void | setMaximumNumberOfErrors (Size nr) |
|
Size | getMaximumNumberOfErrors () const |
|
void | setFirstMolecule (Molecule &molecule1) |
|
Molecule * | getFirstMolecule () const |
|
void | setSecondMolecule (Molecule &molecule2) |
|
Molecule * | getSecondMolecule () const |
|
void | setReceptor (Molecule &receptor) |
|
Molecule * | getReceptor () const |
|
void | setLigand (Molecule &ligand) |
|
Molecule * | getLigand () const |
|
void | setIntercept (double intercept) |
|
double | getIntercept () const |
|
void | setBaseFunction (ScoringBaseFunction &base_function) |
| Set the instance of BaseFunction for the scoring function. More...
|
|
ScoringBaseFunction * | getBaseFunction () const |
|
void | insertComponent (ScoringComponent *component, float coefficient=1.0f) |
|
void | removeComponent (const ScoringComponent *component) |
|
void | removeComponent (const String &name) |
|
void | setCoefficient (const ScoringComponent *component, float coefficient) |
|
void | setCoefficient (const String &name, float coefficient) |
|
bool | getCoefficient (const ScoringComponent *component, float &coefficient) const |
|
bool | getCoefficient (const String &name, float &coefficient) const |
|
ScoringComponent * | getComponent (const String &name) const |
| Return a pointer to a component in the components vector. More...
|
|
ScoringComponent * | getComponent (const Size index) const |
| Return a pointer to a component in the components vector. More...
|
|
double | calculateScore () |
|
const HashSet< const Atom * > & | getUnassignedAtoms () const |
|
HashSet< const Atom * > & | getUnassignedAtoms () |
|
Definition at line 20 of file scoringFunction.h.
BALL::ScoringFunction::ScoringFunction |
( |
| ) |
|
BALL::ScoringFunction::ScoringFunction |
( |
Molecule & |
receptor, |
|
|
Molecule & |
ligand |
|
) |
| |
virtual BALL::ScoringFunction::~ScoringFunction |
( |
| ) |
|
|
virtual |
double BALL::ScoringFunction::calculateScore |
( |
| ) |
|
virtual void BALL::ScoringFunction::clear |
( |
| ) |
|
|
virtual |
Return a pointer to the instance of BaseFunction used by this scoring function.
Get the coefficient of a component. If there was no matching component, return false, ow return true.
bool BALL::ScoringFunction::getCoefficient |
( |
const String & |
name, |
|
|
float & |
coefficient |
|
) |
| const |
Get the coefficient of a component. If there was no matching component, return false, ow return true.
Return a pointer to a component in the components vector.
Return a pointer to a component in the components vector.
Molecule* BALL::ScoringFunction::getFirstMolecule |
( |
| ) |
const |
double BALL::ScoringFunction::getIntercept |
( |
| ) |
const |
Molecule* BALL::ScoringFunction::getLigand |
( |
| ) |
const |
Return the ligand of the complex (which is just the same as molecule2_).
Size BALL::ScoringFunction::getMaximumNumberOfErrors |
( |
| ) |
const |
Molecule* BALL::ScoringFunction::getReceptor |
( |
| ) |
const |
Return the receptor of the complex (which is just the same as molecule1_).
Molecule* BALL::ScoringFunction::getSecondMolecule |
( |
| ) |
const |
const HashSet<const Atom*>& BALL::ScoringFunction::getUnassignedAtoms |
( |
| ) |
const |
HashSet<const Atom*>& BALL::ScoringFunction::getUnassignedAtoms |
( |
| ) |
|
void BALL::ScoringFunction::removeComponent |
( |
const ScoringComponent * |
component | ) |
|
Remove a component from the component list of this scoring function and delete it from memory. If there was no matching component, do nothing. Note that the user will get no feedback if there was no component removed.
void BALL::ScoringFunction::removeComponent |
( |
const String & |
name | ) |
|
Remove a component from the component list of this scoring function and delete it from memory. If there was no matching component, do nothing. Note that the user will get no feedback if there was no component removed. Only the first occurrence of a name in the component list will be removed.
Set the instance of BaseFunction for the scoring function.
Set the coefficient of a component. If there was no matching component, do nothing. Note that the user will get no feedback if there was no coefficient set.
void BALL::ScoringFunction::setCoefficient |
( |
const String & |
name, |
|
|
float |
coefficient |
|
) |
| |
Set the coefficient of a named component. If there was no matching component, do nothing. Note that the user will get no feedback if there was no coefficient set. Only the first occurrence of a name in the component list will be changed.
void BALL::ScoringFunction::setFirstMolecule |
( |
Molecule & |
molecule1 | ) |
|
void BALL::ScoringFunction::setIntercept |
( |
double |
intercept | ) |
|
void BALL::ScoringFunction::setLigand |
( |
Molecule & |
ligand | ) |
|
Set the ligand of the complex (which is just the same as molecule2_).
void BALL::ScoringFunction::setMaximumNumberOfErrors |
( |
Size |
nr | ) |
|
void BALL::ScoringFunction::setReceptor |
( |
Molecule & |
receptor | ) |
|
Set the receptor of the complex (which is just the same as molecule1_).
void BALL::ScoringFunction::setSecondMolecule |
( |
Molecule & |
molecule2 | ) |
|
bool BALL::ScoringFunction::setup |
( |
| ) |
|
double BALL::ScoringFunction::intercept_ |
|
protected |
Size BALL::ScoringFunction::max_number_of_errors_ |
|
protected |
Molecule* BALL::ScoringFunction::molecule1_ |
|
protected |
Molecule* BALL::ScoringFunction::molecule2_ |
|
protected |
String BALL::ScoringFunction::name_ |
|
protected |
Size BALL::ScoringFunction::number_of_errors_ |
|
protected |
Options BALL::ScoringFunction::options |
double BALL::ScoringFunction::score_ |
|
protected |
HashSet<const Atom*> BALL::ScoringFunction::unassigned_atoms_ |
|
protected |