Skip to content

juliastreamgraphs/IntervalUnions.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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