BioJulia / IntervalTrees.jl

A data structure for efficient manipulation of sets of intervals
MIT License
44 stars 17 forks source link

Join "forces" somehow with IntervalSets.jl #32

Open yakir12 opened 7 years ago

yakir12 commented 7 years ago

Let me start by saying that I needed (and will now use) exactly this package. Almost weird to find something so close to what I needed in such a young language.

Tim Holy wrote IntervalSets.jl as a basis for anything intervaly. Seems like it might make sense to incorporate his package here. Then again, it might not. But if you see how it could simplify the code here then why not?

Just a thought.

yakir12 commented 7 years ago

A quick thought is to use IntervalSets.ClosedInterval as the base type for your trees. For instance, the intersect function could accept ClosedInterval instead of a tuple of numbers.

o314 commented 5 years ago

JuliaCollections has been created since and should better match the discrete math part

jakewilliami commented 10 months ago

+1, I came here to suggest it too. They key values in this package should definitely support IntervalSets.jl.