![]() |
Chemical Data Processing Library Python API - Version 1.2.3
|
Functor class for calculating the Manhattan Distance [MADI] between bitsets and vectors. More...
Inheritance diagram for CDPL.Descr.ManhattanDistance:Public Member Functions | |
| None | __init__ () |
| Initializes the ManhattanDistance instance. | |
| None | __init__ (ManhattanDistance func) |
| Initializes a copy of the ManhattanDistance instance func. More... | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| ManhattanDistance | assign (ManhattanDistance func) |
Replaces the current state of self with a copy of the state of the ManhattanDistance instance func. More... | |
| float | __call__ (Math.FVector v1, Math.FVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | __call__ (Math.DVector v1, Math.DVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | __call__ (Math.LVector v1, Math.LVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
| float | __call__ (Math.ULVector v1, Math.ULVector v2) |
| Calculates the Manhattan Distance [MADI] between the vectors v1 and v2. More... | |
Properties | |
| objectID = property(getObjectID) | |
Functor class for calculating the Manhattan Distance [MADI] between bitsets and vectors.
| None CDPL.Descr.ManhattanDistance.__init__ | ( | ManhattanDistance | func | ) |
Initializes a copy of the ManhattanDistance instance func.
| func | The ManhattanDistance instance to copy. |
| int CDPL.Descr.ManhattanDistance.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python ManhattanDistance 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 ManhattanDistance 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().
| ManhattanDistance CDPL.Descr.ManhattanDistance.assign | ( | ManhattanDistance | func | ) |
Replaces the current state of self with a copy of the state of the ManhattanDistance instance func.
| func | The ManhattanDistance instance to copy. |
| float CDPL.Descr.ManhattanDistance.__call__ | ( | Math.FVector | v1, |
| Math.FVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
[ D_{12} = {\left | \vec{v}_1 - \vec{v}_2 \right |}_1 ]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.ManhattanDistance.__call__ | ( | Math.DVector | v1, |
| Math.DVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
[ D_{12} = {\left | \vec{v}_1 - \vec{v}_2 \right |}_1 ]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.ManhattanDistance.__call__ | ( | Math.LVector | v1, |
| Math.LVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
[ D_{12} = {\left | \vec{v}_1 - \vec{v}_2 \right |}_1 ]
| v1 | The first vector. |
| v2 | The second vector. |
| float CDPL.Descr.ManhattanDistance.__call__ | ( | Math.ULVector | v1, |
| Math.ULVector | v2 | ||
| ) |
Calculates the Manhattan Distance [MADI] between the vectors v1 and v2.
The Manhattan Distance \( D_{12} \) is calculated by:
[ D_{12} = {\left | \vec{v}_1 - \vec{v}_2 \right |}_1 ]
| v1 | The first vector. |
| v2 | The second vector. |