Skip to main content
. Author manuscript; available in PMC: 2023 Apr 1.
Published in final edited form as: IEEE Trans Fuzzy Syst. 2021 Jan 18;30(4):1048–1059. doi: 10.1109/tfuzz.2021.3052107

Algorithm 1.

IEPF(P, ϵ)

Input: P = {P1Pn}: a graphical representation of a TS as n points in R2; ϵ: a distance threshold.
Output: Sϵ(P): a subset of points of P that satisfies the distance criterion given by the threshold ϵ.
dmax ← 0
for i ← 2 to n − 1 do
  ddist(P1Pn¯,Pi)
  if d > dmax then
    dmaxd
    imaxi
  end if
end for
if dmax > ϵ then
  Sϵ (P) ← IEPF(P1Pimax, ϵ) ⋃ IEPF(PimaxPn, ϵ)
else
  Sϵ(P) ← P
end if