Liking cljdoc? Tell your friends :D

vaelii.impl.distance

Qualitative distance: seven classes tiling [0, ∞), three derived ranges, composition computed from the class bounds by the triangle inequality, and the calculus and prover over vaelii.impl.qcn-kb. See docs/space.md.

Qualitative distance: seven classes tiling `[0, ∞)`, three derived ranges, composition
computed from the class bounds by the triangle inequality, and the calculus and prover
over `vaelii.impl.qcn-kb`. See docs/space.md.
raw docstring

all-classesclj

The seven classes: the universe of the algebra.

The seven classes: the universe of the algebra.
sourceraw docstring

base-class-predicateclj

Distance class keyword → the binary predicate a fact about it is stored under.

Distance class keyword → the binary predicate a fact about it is stored under.
sourceraw docstring

class-boundsclj

Each class as the bounds [lo hi] of the half-open interval (lo, hi] of distances it covers. The intervals tile the non-negative reals in class-order, and :co runs from -∞ so that it denotes exactly zero. Scaling every finite bound by one factor leaves compose unchanged.

Each class as the bounds `[lo hi]` of the half-open interval `(lo, hi]` of distances it
covers. The intervals tile the non-negative reals in `class-order`, and `:co` runs from
-∞ so that it denotes exactly zero. Scaling every finite bound by one factor leaves
`compose` unchanged.
sourceraw docstring

class-orderclj

The seven classes, nearest first: the order classify and compose walk.

The seven classes, nearest first: the order `classify` and `compose` walk.
sourceraw docstring

classifyclj

(classify d)

The single class a numeric distance d falls in. The classes tile [0, ∞), so this is total over real distances — and nil for a negative number, which is no distance at all and which :co's unbounded lower end would otherwise swallow.

The single class a numeric distance `d` falls in.  The classes tile `[0, ∞)`, so this is
total over real distances — and nil for a negative number, which is no distance at all
and which `:co`'s unbounded lower end would otherwise swallow.
sourceraw docstring

composeclj

(compose s1 s2)

The composition of two class sets: every class whose interval meets the triangle range of some pair of members.

The composition of two class sets: every class whose interval meets the triangle range
of some pair of members.
sourceraw docstring

converse-setclj

(converse-set classes)

The converse of a class set: itself, since d(a,b) = d(b,a).

The converse of a class set: itself, since d(a,b) = d(b,a).
sourceraw docstring

distance-algebraclj

Qualitative distance as a vaelii.impl.qcn relation algebra.

Qualitative distance as a `vaelii.impl.qcn` relation algebra.
sourceraw docstring

distance-denotationclj

Every distance predicate, the seven base and the three derived ranges, mapped to the set of classes it denotes.

Every distance predicate, the seven base and the three derived ranges, mapped to the set
of classes it denotes.
sourceraw docstring

distance-proverclj

(distance-prover)

The qualitative-distance entailment prover, which vaelii.core/add-reasoner registers as :distance.

The qualitative-distance entailment prover, which `vaelii.core/add-reasoner` registers
as `:distance`.
sourceraw docstring

qualitative-distanceclj

Qualitative distance as a vaelii.impl.qcn-kb calculus.

Qualitative distance as a `vaelii.impl.qcn-kb` calculus.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close