hashing¶
Bindings for numeric::geometry::hashing namespace
-
class
pyrosetta.rosetta.numeric.geometry.hashing.
SixDCoordinateBinner
¶ Bases:
pybind11_builtins.pybind11_object
Bin the six degrees of freedom that describe the downstream geometry of a hit. These degrees of freedom are, in order, the x, y and z coordinates of orientation atom3, and the phi, psi, and theta euler angles that describe the orientation of the coordinate frame at orientation atom 3. The binner is responsible for maintaining the lower corner of the 6-d space – the first two Euler angles wrap at 360; the third Euler angle, theta, does not wrap in the same way. See the comments for the bin6 method.
-
__delattr__
¶ Implement delattr(self, name).
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
(*args, **kwargs)¶ Overloaded function.
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, bounding_box: pyrosetta.rosetta.numeric.geometry.BoundingBox_numeric_xyzVector_double_t, euler_offsets: pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_3_t, bin_widths: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) -> None
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, arg0: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) -> None
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
assign
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, : pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::operator=(const class numeric::geometry::hashing::SixDCoordinateBinner &) –> class numeric::geometry::hashing::SixDCoordinateBinner &
-
bin6
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, values: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) → pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t¶ - Construct the discrete representation of a six-dimensional vector
- of reals representing an xyz coordinate in its first three dimensions and a set of three Euler angles in the last three dimensions. Precondition: The xyz coordinate must be inside the bounding box of this binner. Precondition: The euler angles should be in degrees; the first two should be in the range between 0 and 360, the third should be in the range from 0 to 180.
C++: numeric::geometry::hashing::SixDCoordinateBinner::bin6(const class utility::fixedsizearray1<double, 6> &) const –> class utility::fixedsizearray1<unsigned long, 6>
-
bin_center_point
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, bin: pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t) → pyrosetta.rosetta.utility.fixedsizearray1_double_6_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::bin_center_point(const class utility::fixedsizearray1<unsigned long, 6> &) const –> class utility::fixedsizearray1<double, 6>
-
bin_from_index
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, index: int) → pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::bin_from_index(unsigned long) const –> class utility::fixedsizearray1<unsigned long, 6>
-
bin_index
(*args, **kwargs)¶ Overloaded function.
- bin_index(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, bin: pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t) -> int
functor used by boost (and sgi’s stl) hash classes.
C++: numeric::geometry::hashing::SixDCoordinateBinner::bin_index(const class utility::fixedsizearray1<unsigned long, 6> &) const –> unsigned long
- bin_index(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, values: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) -> int
compute the bin index (64-bit int) for a 6D point.
C++: numeric::geometry::hashing::SixDCoordinateBinner::bin_index(const class utility::fixedsizearray1<double, 6> &) const –> unsigned long
-
bin_widths
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.utility.fixedsizearray1_double_6_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::bin_widths() const –> const class utility::fixedsizearray1<double, 6> &
-
bounding_box
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.numeric.geometry.BoundingBox_numeric_xyzVector_double_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::bounding_box() const –> const class numeric::geometry::BoundingBox<class numeric::xyzVector<double> > &
-
bounding_volume_from_index
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, index: int) → pyrosetta.rosetta.numeric.geometry.BoundingBox_numeric_xyzVector_double_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::bounding_volume_from_index(unsigned long) const –> class numeric::geometry::BoundingBox<class numeric::xyzVector<double> >
-
contains
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, point: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) → bool¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::contains(const class utility::fixedsizearray1<double, 6> &) const –> bool
-
dimsizes
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::dimsizes() const –> const class utility::fixedsizearray1<unsigned long, 6> &
-
euler_offsets
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.utility.fixedsizearray1_double_3_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::euler_offsets() const –> const class utility::fixedsizearray1<double, 3> &
-
halfbin6
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, values: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) → pyrosetta.rosetta.utility.fixedsizearray1_unsigned_long_6_t¶ - Determine halfbin index for a point in 6D
- i.e., how far from the lower corner of the point’s containing 6D voxel is the point – is it more than halfway to the next 6D voxel? Each dimension returned will hold a 0 or a 1.
C++: numeric::geometry::hashing::SixDCoordinateBinner::halfbin6(const class utility::fixedsizearray1<double, 6> &) const –> class utility::fixedsizearray1<unsigned long, 6>
-
halfbin_widths
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner) → pyrosetta.rosetta.utility.fixedsizearray1_double_6_t¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::halfbin_widths() const –> const class utility::fixedsizearray1<double, 6> &
-
radial_bin_index
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, radius: int, center: pyrosetta.rosetta.utility.fixedsizearray1_double_6_t) → pyrosetta.rosetta.std.vector_unsigned_long¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::radial_bin_index(unsigned long, const class utility::fixedsizearray1<double, 6> &) const –> class std::vector<unsigned long, class std::allocator<unsigned long> >
-
tree_init
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDCoordinateBinner, max_radius: int) → None¶ C++: numeric::geometry::hashing::SixDCoordinateBinner::tree_init(unsigned long) –> void
-
-
class
pyrosetta.rosetta.numeric.geometry.hashing.
SixDOffsetTree
¶ Bases:
pybind11_builtins.pybind11_object
Returns a list of offsets corresponding to the bins in a hypershell with radius x
-
__delattr__
¶ Implement delattr(self, name).
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
(*args, **kwargs)¶ Overloaded function.
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree) -> None
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree, arg0: pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree) -> None
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
assign
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree, : pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree) → pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree¶ C++: numeric::geometry::hashing::SixDOffsetTree::operator=(const class numeric::geometry::hashing::SixDOffsetTree &) –> class numeric::geometry::hashing::SixDOffsetTree &
-
init
(self: pyrosetta.rosetta.numeric.geometry.hashing.SixDOffsetTree, max_radius: int) → None¶ C++: numeric::geometry::hashing::SixDOffsetTree::init(unsigned long) –> void
-
-
class
pyrosetta.rosetta.numeric.geometry.hashing.
bin_index_hasher
¶ Bases:
pybind11_builtins.pybind11_object
Small hashing struct with no private data; simply an algorithm to turn a 64-bit representation of a 6d voxel into an integer.
-
__call__
(self: pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher, bin_index: int) → int¶ functor used by boost (and sgi’s stl) hash classes.
C++: numeric::geometry::hashing::bin_index_hasher::operator()(unsigned long) const –> unsigned long
-
__delattr__
¶ Implement delattr(self, name).
-
__dir__
() → list¶ default dir() implementation
-
__eq__
¶ Return self==value.
-
__format__
()¶ default object formatter
-
__ge__
¶ Return self>=value.
-
__getattribute__
¶ Return getattr(self, name).
-
__gt__
¶ Return self>value.
-
__hash__
¶ Return hash(self).
-
__init__
(*args, **kwargs)¶ Overloaded function.
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher) -> None
- __init__(self: pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher, arg0: pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher) -> None
-
__init_subclass__
()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__
¶ Return self<=value.
-
__lt__
¶ Return self<value.
-
__ne__
¶ Return self!=value.
-
__new__
()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__
()¶ helper for pickle
-
__reduce_ex__
()¶ helper for pickle
-
__repr__
¶ Return repr(self).
-
__setattr__
¶ Implement setattr(self, name, value).
-
__sizeof__
() → int¶ size of object in memory, in bytes
-
__str__
¶ Return str(self).
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
assign
(self: pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher, : pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher) → pyrosetta.rosetta.numeric.geometry.hashing.bin_index_hasher¶ C++: numeric::geometry::hashing::bin_index_hasher::operator=(const struct numeric::geometry::hashing::bin_index_hasher &) –> struct numeric::geometry::hashing::bin_index_hasher &
-