neurolang.perior_tree module

class neurolang.perior_tree.Boundary(lb, ub)

Bases: BoundedAABB

Attributes:
center
dim
lb
limits
ub
volume
width

Methods

adjust_direction

adjust_position

adjust_to_bound

cardinal_tiles

contains

contains_tuple

direction_matrix

expand

expand_object

expand_tuple

intersects

overlaps

union

adjust_direction(point)
adjust_position(point) Tuple
class neurolang.perior_tree.BoundedAABB(lb: tuple, ub: tuple, bounded_area: Boundary)

Bases: AABB

Attributes:
center
dim
lb
limits
ub
volume
width

Methods

adjust_to_bound

cardinal_tiles

contains

contains_tuple

direction_matrix

expand

expand_object

expand_tuple

intersects

overlaps

union

adjust_to_bound() None
cardinal_tiles() array
property center: array
contains(arg)
contains_tuple(point: tuple) bool
direction_matrix(other: BoundedAABB) matrix
expand(arg)
expand_object(another_box: BoundedAABB)
expand_tuple(point: tuple)
intersects(other: BoundedAABB) bool
property volume: float
property width: Tuple
class neurolang.perior_tree.Node(box: BoundedAABB, parent: None | Node = None, left: None | Node = None, right: None | Node = None, height: int = 0, region_ids: Set[int] | None = None)

Bases: object

Attributes:
is_leaf
property is_leaf
class neurolang.perior_tree.Tree

Bases: object

Methods

add

expand_region_box

query_regions_axdir

query_regions_contained_in_box

add(box: BoundedAABB, region_ids: Set[int] | None = None) None
expand_region_box(region_id: int, added_box: BoundedAABB) None
query_regions_axdir(region_id: int, axis: int, direction: int) Set[int]
query_regions_contained_in_box(box: BoundedAABB) Set[int]
neurolang.perior_tree.methdispatch(func)