Chemical Data Processing Library Python API - Version 1.2.0
|
Public Member Functions | |
None | __init__ () |
Constructs the LogSCalculator instance. | |
None | __init__ (LogSCalculator calc) |
Initializes a copy of the LogSCalculator instance calc. More... | |
None | __init__ (Chem.MolecularGraph molgraph) |
Constructs the LogSCalculator instance and calculates the \( \log S \) of the molecular graph molgraph. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
LogSCalculator | assign (LogSCalculator calc) |
Replaces the current state of self with a copy of the state of the LogSCalculator instance calc. More... | |
float | calculate (Chem.MolecularGraph molgraph) |
Calculates the \( \log S \) of the molecular graph molgraph. More... | |
float | getResult () |
Returns the result of the last \( \log S \) calculation. More... | |
Math.DVector | getFeatureVector () |
Returns the feature count vector of the last \( \log S \) calculation. More... | |
Static Public Attributes | |
int | FEATURE_VECTOR_SIZE = 79 |
Specifies the number of different features used by the \( \log S \) model. | |
Properties | |
objectID = property(getObjectID) | |
result = property(getResult) | |
None CDPL.MolProp.LogSCalculator.__init__ | ( | LogSCalculator | calc | ) |
Initializes a copy of the LogSCalculator instance calc.
calc | The LogSCalculator instance to copy. |
None CDPL.MolProp.LogSCalculator.__init__ | ( | Chem.MolecularGraph | molgraph | ) |
Constructs the LogSCalculator
instance and calculates the \( \log S \) of the molecular graph molgraph.
The calculated \( \log S \) can be retrieved by a call to getResult().
molgraph | The molecular graph for which to calculate the \( \log S \). |
int CDPL.MolProp.LogSCalculator.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python LogSCalculator instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two LogSCalculator instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
LogSCalculator CDPL.MolProp.LogSCalculator.assign | ( | LogSCalculator | calc | ) |
Replaces the current state of self with a copy of the state of the LogSCalculator instance calc.
calc | The LogSCalculator instance to copy. |
float CDPL.MolProp.LogSCalculator.calculate | ( | Chem.MolecularGraph | molgraph | ) |
Calculates the \( \log S \) of the molecular graph molgraph.
molgraph | The molecular graph for which to calculate the \( \log S \). |
float CDPL.MolProp.LogSCalculator.getResult | ( | ) |
Returns the result of the last \( \log S \) calculation.
Math.DVector CDPL.MolProp.LogSCalculator.getFeatureVector | ( | ) |
Returns the feature count vector of the last \( \log S \) calculation.
The occurrence count of a particular structural feature can be retrieved from the returned vector via its feature index. The feature index correspond to the numerical identifier of the feature's definition in the original publication [LOGS].