IntervalProd
- class odl.IntervalProd(min_pt, max_pt)
Bases:
SetAn n-dimensional rectangular box.
An interval product is a Cartesian product of n intervals, i.e. an n-dimensional rectangular box aligned with the coordinate axes as a subset of the n-dimensional Euclidean space.
IntervalProdobjects are immutable, hence all manipulation methods return a new instance.- __init__(min_pt, max_pt)[source]
Initialize a new instance.
Parameters
- min_pt, max_ptfloat or
array-like Vectors of lower/upper ends of the intervals in the product.
Examples
>>> min_pt, max_pt = [-1, 2.5, 70], [-0.5, 10, 75] >>> rbox = odl.IntervalProd(min_pt, max_pt) >>> rbox IntervalProd([ -1. , 2.5, 70. ], [ -0.5, 10. , 75. ])
- min_pt, max_ptfloat or