A function to determine the (basic) relation between two intervals.
A function to determine the (basic) relation between two intervals.
(complement-r r)
Return the complement of the general relation. The complement ~r of a relation r is the relation consisting of all basic relations not in r.
Return the complement of the general relation. The complement ~r of a relation r is the relation consisting of all basic relations not in r.
(compose-r r s)
Return the composition of r and s
Return the composition of r and s
(concur x y)
Return the interval representing the interval, if there is one, representing the interval of time the given intervals are concurrent.
Return the interval representing the interval, if there is one, representing the interval of time the given intervals are concurrent.
(concurrencies & intervals)
Return a sequence of occurances where intervals coincide (having non-nil concur intervals).
Return a sequence of occurances where intervals coincide (having non-nil concur intervals).
(conv f)
The converse of a basic relation.
The converse of a basic relation.
(converse-r r)
Return the converse of the given general relation. The converse !r of a relation r is the relation consisting of the converses of all basic relations in r.
Return the converse of the given general relation. The converse !r of a relation r is the relation consisting of the converses of all basic relations in r.
(difference s1)
(difference s1 s2)
(difference s1 s2 & sets)
Return an interval set that is the first set without elements of the remaining sets.
Return an interval set that is the first set without elements of the remaining sets.
(disjoin s1)
(disjoin s1 s2)
(disjoin s1 s2 & sets)
Split s1 across the grating defined by s2
Split s1 across the grating defined by s2
(divide-by-duration ival dur)
Divide an interval by a duration, returning a sequence of intervals. If the interval cannot be wholly sub-divided by the duration divisor, the last interval will represent the 'remainder' of the division and not be as long as the other preceeding intervals.
Divide an interval by a duration, returning a sequence of intervals. If the interval cannot be wholly sub-divided by the duration divisor, the last interval will represent the 'remainder' of the division and not be as long as the other preceeding intervals.
(group-by-intervals intervals-to-group-by ivals)
Divide intervals in s1 by (disjoint ordered) intervals in s2, splitting if necessary, grouping by s2. Complexity is O(n) rather than O(n^2)
Divide intervals in s1 by (disjoint ordered) intervals in s2, splitting if necessary, grouping by s2. Complexity is O(n) rather than O(n^2)
(divide-interval divisor ival)
Divide an interval by a given divisor
Divide an interval by a given divisor
(splice this ival)
Splice another interval on to this one
Splice another interval on to this one
(split this t)
Split ival into 2 intervals at t, returned as a 2-element vector
Split ival into 2 intervals at t, returned as a 2-element vector
(slice this beginning end)
Fit the interval between beginning and end, slicing off one or both ends as necessary
Fit the interval between beginning and end, slicing off one or both ends as necessary
(intersection s1)
(intersection s1 s2)
(intersection s1 s2 & sets)
Return a time-ordered sequence of disjoint intervals where two or more intervals of the given sequences are concurrent. Arguments must be time-ordered sequences of disjoint intervals.
Return a time-ordered sequence of disjoint intervals where two or more intervals of the given sequences are concurrent. Arguments must be time-ordered sequences of disjoint intervals.
(intersection-r r s)
Return the intersection of the r with s
Return the intersection of the r with s
(temporal-value _)
Return a value of a type that satisfies t/ITimeSpan
Return a value of a type that satisfies t/ITimeSpan
(new-interval-group x)
Return an interval group. Interval groups are maps with a :tick/intervals entry that contain a time-ordered sequence of disjoint intervals.
Return an interval group. Interval groups are maps with a :tick/intervals entry that contain a time-ordered sequence of disjoint intervals.
(normalize intervals)
Within a time-ordered sequence of disjoint intervals, return a sequence of interval groups, splicing together meeting intervals.
Within a time-ordered sequence of disjoint intervals, return a sequence of interval groups, splicing together meeting intervals.
(ordered-disjoint-intervals? s)
Are all the intervals in the given set time-ordered and disjoint? This is a useful property of a collection of intervals. The given collection must contain proper intervals (that is, intervals that have finite greater-than-zero durations).
Are all the intervals in the given set time-ordered and disjoint? This is a useful property of a collection of intervals. The given collection must contain proper intervals (that is, intervals that have finite greater-than-zero durations).
(union & colls)
Merge multiple time-ordered sequences of disjoint intervals into a single sequence of time-ordered disjoint intervals.
Merge multiple time-ordered sequences of disjoint intervals into a single sequence of time-ordered disjoint intervals.
(unite intervals)
Unite concurrent intervals. Intervals must be ordered by beginning but not necessarily disjoint (the purpose of this function is to splice together intervals that are concurrent resulting in a time-ordered sequence of disjoint intervals that is returned.
Unite concurrent intervals. Intervals must be ordered by beginning but not necessarily disjoint (the purpose of this function is to splice together intervals that are concurrent resulting in a time-ordered sequence of disjoint intervals that is returned.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close