From 9701a73791527e6b32d06d2250441c7704e404bd Mon Sep 17 00:00:00 2001 From: schillic Date: Sat, 18 Jul 2020 09:24:48 +0200 Subject: [PATCH] rename approximate function --- docs/src/lib/approximations.md | 2 +- docs/src/man/iterative_refinement.md | 2 +- src/Approximations/iterative_refinement.jl | 4 ++-- src/Approximations/overapproximate.jl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/lib/approximations.md b/docs/src/lib/approximations.md index caf9555351..85d5769df6 100644 --- a/docs/src/lib/approximations.md +++ b/docs/src/lib/approximations.md @@ -62,7 +62,7 @@ new_approx(S::LazySet, p1::VN, d1::VN, addapproximation!(Ω::PolygonalOverapproximation, p1::VN, d1::VN, p2::VN, d2::VN) where {N<:Real, VN<:AbstractVector{N}} refine(::LocalApproximation, ::LazySet) tohrep(::PolygonalOverapproximation) -approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} +_approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} constraint(::LocalApproximation) ``` diff --git a/docs/src/man/iterative_refinement.md b/docs/src/man/iterative_refinement.md index 71ad7fc577..29adaa9b2e 100644 --- a/docs/src/man/iterative_refinement.md +++ b/docs/src/man/iterative_refinement.md @@ -161,7 +161,7 @@ point epsilon in the given numerical precision. ## Algorithm Having presented the individual steps, we give the pseudocode of the iterative -refinement algorithm, see `approximate(S, ε)`. +refinement algorithm, see `_approximate(S, ε)`. The algorithm consists of the following steps: diff --git a/src/Approximations/iterative_refinement.jl b/src/Approximations/iterative_refinement.jl index ae06ea9c50..0a7689fdb9 100644 --- a/src/Approximations/iterative_refinement.jl +++ b/src/Approximations/iterative_refinement.jl @@ -184,7 +184,7 @@ function tohrep(Ω::PolygonalOverapproximation) end """ - approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} + _approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} Return an ε-close approximation of the given 2D convex set (in terms of Hausdorff distance) as an inner and an outer approximation composed by sorted @@ -199,7 +199,7 @@ local `Approximation2D`. An ε-close approximation of the given 2D convex set. """ -function approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} +function _approximate(S::LazySet{N}, ε::N) where {N<:AbstractFloat} # initialize box directions pe = σ(DIR_EAST(N), S) pn = σ(DIR_NORTH(N), S) diff --git a/src/Approximations/overapproximate.jl b/src/Approximations/overapproximate.jl index a6fd2d5b90..47648d20e5 100644 --- a/src/Approximations/overapproximate.jl +++ b/src/Approximations/overapproximate.jl @@ -61,7 +61,7 @@ function overapproximate(S::ST, constraints[4] = LinearConstraint(DIR_SOUTH(N), ρ(DIR_SOUTH(N), S)) return HPolygon(constraints, sort_constraints=false) else - return tohrep(approximate(S, ε)) + return tohrep(_approximate(S, ε)) end end