![]() |
YAP 7.1.0
|
This package assumes you use exo-compilation, that is, that you loaded the pedicate using the exo
option to load_files/2 , In this case, YAP includes a package for improved search on intervals of integers.
More...
This package assumes you use exo-compilation, that is, that you loaded the pedicate using the exo
option to load_files/2 , In this case, YAP includes a package for improved search on intervals of integers.
The package is activated by udi
declarations that state what is the argument of interest:
It is designed to optimise the following type of queries:
The first argument gives the time, the second the patient, and the third the condition code The first query should find the last time the patient 9 had any code reported, the second looks for the first report of code 36211117, and the last searches for reports after this one All queries run in constant or log(n) time
class max/2 |
max( X, Vs)
First Argument is the greatest element of a list
The following predicates control search:
class max/1 |
max(+ Expression)
Maximizes Expression within the current constraint store This is the same as computing the supremum and equating the expression to that supremum
class min/2 |
min( X, Vs)
First Argument is the least element of a list
class min/1 |
min(+ Expression)
Minimizes Expression within the current constraint store This is the same as computing the infimum and equation the expression to that infimum