Julia package to work with unions of intervals.
julia> using Pkg
julia> Pkg.clone("git://github.com/juliastreamgraphs/IntervalUnions.jl")
IntervalUnions.jl
is a Julia package to work with intervals of real numbers and unions of disjoint intervals of real numbers.
Small example with simple intervals:
julia> using IntervalUnions
julia> I = Interval(0,1)
[0,1]
julia> J = Interval(0.5,true,1.2)
]0.5,1.2]
julia> I ∩ J
]0.5,1]
Small example with unions of intervals:
julia> using IntervalUnions
julia> I = IntervalUnion([Interval(0,1), Interval(2,4,true), Interval(4,true,5,true)])
[0,1] ∪ [2,4[ ∪ ]4,5[
julia> cardinal(I)
4
julia> complement(I)
]-Inf,0[ ∪ ]1,2[ ∪ [4,4] ∪ [5,Inf[
julia> J = IntervalUnion(0.5,true,4)
]0.5,4]
julia> I ∪ J
[0,5[
julia> I ∩ J
]0.5,1] ∪ [2,4[
Documentation is available at GitHub Pages.
StreamGraphs is released under a BSD license.
If you are having issues using StreamGraphs, feel free to open an Issue here
For questions about collaboration please email Nicolas Gensollen