Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.98 KB

README.md

File metadata and controls

63 lines (46 loc) · 1.98 KB

IntervalUnions.jl

Build Status Build status codecov

Julia package to work with unions of intervals.

Installation

julia> using Pkg
julia> Pkg.clone("git://github.com/juliastreamgraphs/IntervalUnions.jl")

Quick start

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

Documentation is available at GitHub Pages.

License

StreamGraphs is released under a BSD license.

Contact

If you are having issues using StreamGraphs, feel free to open an Issue here

For questions about collaboration please email Nicolas Gensollen