OEHermite
class OEHermite
This class performs Hermite expansion for a given molecule or a grid representation of a molecule, then returns the coefficients of expansion and creates a grid representation of Hermite shape.
See also
Shape from Hermite expansion examples
Constructors
OEHermite(hermOpts: OEHermiteOptions = OEHermiteOptions()) -> OEHermite
OEHermite(arg2: OEHermite) -> OEHermite
This class has three constructors. The first two are default and copy constructors. The third one is a constructor that takes an option class OEHermiteOptions.
Assignment operator.
CreateGrid
CreateGrid(grid: OEScalarGrid, spacing: float) -> None
CreateGrid(grid: OEScalarGrid, spacing: float, trans: OETrans) -> None
This method creates a grid representation of the obtained Hermite
expansion. Depending on the grid spacing parameter, the number
of grid points to cover the entire molecule will be calculated. If
this number exceeds 500 points per space dimension, the user will be
warned that the maximum allowed value of 500 will be used instead.
The second overload uses the transform that is applied to transform
the generated grid.
GetCoefficients
GetCoefficients(coeffs: OEDoubleVector) -> bool
GetCoefficients() -> OEDoubleVector
Returns the values of Hermite expansion coefficients in the form of an STL vector. These are precisely the coefficients \(f_{\ell mn}\) introduced in the Shape from Hermite Representation, in the following order: \(\,N = 0\dots \text{NPolyMax},\, \ell = 0\dots \text{N}, \,m = 0\dots \text{N}-\ell, \,n = \text{N}-\ell-m\).
GetOptions
GetOptions() -> OEHermiteOptions
Returns the option class OEHermiteOptions that the OEHermite class is currently using.
GetSelfOverlap
GetSelfOverlap() -> float
Returns the self-overlap of the molecule corresponding to Hermite expansion.
NumCoefficients
NumCoefficients() -> int
Returns the size of the Hermite expansion representation. This number is given by \(\,(\text{NPolyMax}+1)(\text{NPolyMax}+2)(\text{NPolyMax}+3)/6\), which is the number of possible sets \((\ell, m, n)\) such that \(\ell + m + n \leq NPolyMax\).
Setup
Setup(argQuery: OEShapeQuery) -> bool
Setup(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool
Setup(grid: OEScalarGrid) -> bool
This overloaded method allows a user to input into the OEHermite class a molecule as a shape query object or a molecule object, or by using a grid representation. The method returns True if the setup was successful and False otherwise.