| |
- Configuration
class Configuration |
|
A set of named points with coordinates of a specified dimension.
Immutable. Defines equality and a hash function.
Attributes:
map - a dictionary mapping variable names to point values.
dimension - the dimension of the space in which the configuration is embedded
underconstrained - flag indicating an underconstrained merge (not a unique solution) |
|
Methods defined here:
- __eq__(self, other)
- two configurations are equal if they map onto eachother modulo rotation and translation
- __hash__(self)
- __init__(self, map)
- instantiate a Configuration
- __str__(self)
- add(self, c)
- return a new configuration which is this configuration extended with all points in c not in this configuration
- checkdimension(self)
- returns the dimension of the points, or zero if they are of different dimensions
- copy(self)
- returns a shallow copy
- get(self, var)
- return position of point var
- makehash(self)
- the hash is based only on variable names (not values)
- merge(self, other)
- returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).
- merge_scale(self, other)
- returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).
- merge_scale_2D(self, other, vars=[])
- returns a new configurations which is this one plus the given other configuration transformed, such that common points will overlap (if possible).
- merge_scale_transform(self, other)
- merge_transform(self, other)
- select(self, vars)
- return a new configuration that is a subconfiguration of this configuration, containing only the selected variables
- transform(self, t)
- returns a new configuration, which is this one transformed by matrix t
- vars(self)
- return list of variables
| |