mindthegap
Intervals, Relations and Algorithms
Documentation
You can find mindthegap documentation on the website.
Usage
Add the following dependency to your build.sbt
:
libraryDependencies += "com.github.gchudnov" %% "mindthegap" % "1.0.0"
Import the package:
import com.github.gchudnov.mtg.*
An example application:
package com.example
import com.github.gchudnov.mtg.*
object Hello extends App {
val a = Interval.closed(0, 5)
val b = Interval.closed(1, 6)
val c = a.intersection(b)
println(c)
// Interval(At(Finite(1)),At(Finite(5)))
println(Show.asString(c))
// [1,5]
}
Links
Keywords
Allen's Interval Algebra, Interval Arithmetic, Interval Relations, Infinite Temporal Intervals, Temporal Algorithms
Contact
License
Distributed under the The MIT License (MIT).