#include <openbabel/groupcontrib.h>
Inheritance diagram for OBMR:

Public Member Functions | |
| OBMR () | |
| ~OBMR () | |
| double | Predict (OBMol &mol) |
Protected Member Functions | |
| bool | ParseFile (const char *filename) |
| double | GroupContributions (OBMol &mol) |
This class uses the JOELib2 group contribution algorithm to calculate the MR (Molar Refractivity) of a molecule.
example:
#include <openbabel/groupcontrib.h> #include <openbabel/mol.h> OBMol mol; OBLogP mr; cout << "MR = " << mr.Predict(mol) << endl;
| OBMR | ( | ) |
constructor
| ~OBMR | ( | ) |
destructor
| double Predict | ( | OBMol & | mol | ) |
Predict the MR (Molar Refractivity) for molecule mol using the group contributions algorithm from JOELib2.
| mol | OBMol object for which to predict the MR |
| bool ParseFile | ( | const char * | filename | ) | [protected, inherited] |
Parse the data file. (this function is called from the class constructor)
| double GroupContributions | ( | OBMol & | mol | ) | [protected, inherited] |
Predict the logP, MR, TPSA (each class derived from OBGroupContrib loads different parameters in it's contstructor) for molecule mol using the group contributions algorithm from JOELib2.
| mol | OBMol object for which to predict the logP, MR, TPSA |