Open zsunberg opened 4 years ago
You could use ProductDomain
from DomainSets.jl to represent this as a product of two intervals
julia> all((1.5, 1.7) .∈ (1..2, 1..2))
true
julia> all((1.5, 2.7) .∈ (1..2, 1..2))
false
When it's just broadcasting, I'd be reluctant to add something to this package.
Interval([1,1], [2,2])
seems busted.
It would be nice to have some multidimensional interval sets, i.e. Interval([1,1], [2,3]) would be the "box" between 1 and 2 on the x axis and between 1 and 3 on the y axis.
Currently, it doesn't work as we would want it to:
see e.g. JuliaPOMDP/POMDPs.jl#301, JuliaReinforcementLearning/CommonRLInterface.jl#15 for description of needs.
Is that beyond the scope of this package?