-
Notifications
You must be signed in to change notification settings - Fork 32
/
extrema.jl
52 lines (32 loc) · 1.1 KB
/
extrema.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
extrema(X::LazySet, i::Int)
Compute the lowest and highest coordinate of a set in a given dimension.
### Input
- `X` -- set
- `i` -- dimension
### Output
Two real numbers representing the lowest and highest coordinate of the set in
the given dimension.
### Notes
The result is equivalent to `(low(X, i), high(X, i))`, but sometimes it can be
computed more efficiently.
The resulting values are the lower and upper ends of the projection.
"""
function extrema(::LazySet, ::Int) end
"""
extrema(X::LazySet)
Compute the lowest and highest coordinate of a set in each dimension.
### Input
- `X` -- set
### Output
Two vectors with the lowest and highest coordinates of `X` in each dimension.
### Notes
See also [`extrema(X::LazySet, i::Int)`](@ref).
The result is equivalent to `(low(X), high(X))`, but sometimes it can be
computed more efficiently.
The resulting points are the lowest and highest corners of the box
approximation, so they are not necessarily contained in `X`.
### Algorithm
The default implementation computes the extrema via `low` and `high`.
"""
function extrema(::LazySet) end