Chemical Data Processing Library Python API - Version 1.1.1
|
Classes | |
class | DistanceConstraint |
class | DistanceConstraintList |
Public Member Functions | |
None | __init__ () |
Initializes the DG2DCoordinatesGenerator instance. | |
None | __init__ (DG2DCoordinatesGenerator gen) |
Initializes a copy of the DG2DCoordinatesGenerator instance gen. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
DG2DCoordinatesGenerator | assign (DG2DCoordinatesGenerator gen) |
Replaces the current state of self with a copy of the state of the DG2DCoordinatesGenerator instance gen. More... | |
None | clearDistanceConstraints () |
int | getNumDistanceConstraints () |
DistanceConstraint | getDistanceConstraint (int idx) |
None | addDistanceConstraint (int pt1_idx, int pt2_idx, float lb, float ub) |
None | removeDistanceConstraint (int idx) |
None | setNumCycles (int num_cycles) |
int | getNumCycles () |
None | setCycleStepCountFactor (float fact) |
float | getCycleStepCountFactor () |
None | setStartLearningRate (float rate) |
float | getStartLearningRate () |
None | setLearningRateDecrement (float decr) |
float | getLearningRateDecrement () |
None | setRandomSeed (int seed) |
None | generate (int num_points, Math.Vector2DArray coords) |
float | getDistanceError (Math.Vector2DArray coords) |
DistanceConstraintList | getDistanceConstraints () |
Static Public Attributes | |
int | COORDS_DIM = 2 |
int | DEF_NUM_CYCLES = 50 |
float | DEF_CYCLE_STEP_COUNT_FACTOR = 1.0 |
float | DEF_START_LEARNING_RATE = 1.0 |
float | DEF_LEARNING_RATE_DECREMENT = 0.019 |
Properties | |
objectID = property(getObjectID) | |
numCycles = property(getNumCycles, setNumCycles) | |
cycleStepCountFactor = property(getCycleStepCountFactor, setCycleStepCountFactor) | |
startLearningRate = property(getStartLearningRate, setStartLearningRate) | |
learningRateDecrement = property(getLearningRateDecrement, setLearningRateDecrement) | |
numDistanceConstraints = property(getNumDistanceConstraints) | |
distanceConstraints = property(getDistanceConstraints) | |
None CDPL.Util.DG2DCoordinatesGenerator.__init__ | ( | DG2DCoordinatesGenerator | gen | ) |
Initializes a copy of the DG2DCoordinatesGenerator instance gen.
gen | The DG2DCoordinatesGenerator instance to copy. |
int CDPL.Util.DG2DCoordinatesGenerator.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python DG2DCoordinatesGenerator 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 DG2DCoordinatesGenerator 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()
.
DG2DCoordinatesGenerator CDPL.Util.DG2DCoordinatesGenerator.assign | ( | DG2DCoordinatesGenerator | gen | ) |
Replaces the current state of self with a copy of the state of the DG2DCoordinatesGenerator instance gen.
gen | The DG2DCoordinatesGenerator instance to copy. |
int CDPL.Util.DG2DCoordinatesGenerator.getNumDistanceConstraints | ( | ) |
DistanceConstraint CDPL.Util.DG2DCoordinatesGenerator.getDistanceConstraint | ( | int | idx | ) |
idx |
None CDPL.Util.DG2DCoordinatesGenerator.addDistanceConstraint | ( | int | pt1_idx, |
int | pt2_idx, | ||
float | lb, | ||
float | ub | ||
) |
pt1_idx | |
pt2_idx | |
lb | |
ub |
None CDPL.Util.DG2DCoordinatesGenerator.removeDistanceConstraint | ( | int | idx | ) |
idx |
None CDPL.Util.DG2DCoordinatesGenerator.setNumCycles | ( | int | num_cycles | ) |
num_cycles |
int CDPL.Util.DG2DCoordinatesGenerator.getNumCycles | ( | ) |
None CDPL.Util.DG2DCoordinatesGenerator.setCycleStepCountFactor | ( | float | fact | ) |
fact |
float CDPL.Util.DG2DCoordinatesGenerator.getCycleStepCountFactor | ( | ) |
None CDPL.Util.DG2DCoordinatesGenerator.setStartLearningRate | ( | float | rate | ) |
rate |
float CDPL.Util.DG2DCoordinatesGenerator.getStartLearningRate | ( | ) |
None CDPL.Util.DG2DCoordinatesGenerator.setLearningRateDecrement | ( | float | decr | ) |
decr |
float CDPL.Util.DG2DCoordinatesGenerator.getLearningRateDecrement | ( | ) |
None CDPL.Util.DG2DCoordinatesGenerator.setRandomSeed | ( | int | seed | ) |
seed |
None CDPL.Util.DG2DCoordinatesGenerator.generate | ( | int | num_points, |
Math.Vector2DArray | coords | ||
) |
num_points | |
coords |
float CDPL.Util.DG2DCoordinatesGenerator.getDistanceError | ( | Math.Vector2DArray | coords | ) |
coords |
DistanceConstraintList CDPL.Util.DG2DCoordinatesGenerator.getDistanceConstraints | ( | ) |