Skip to content

Commit

Permalink
make epsilon default to 0.0 instead of 0 (fix fhirschmann#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kopp committed Sep 29, 2023
1 parent d71b467 commit c23f3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def rdp_iter(M: np.ndarray, epsilon: Float, dist: Callable[[np.ndarray, np.ndarr
return M[mask]


def rdp(M: np.ndarray, epsilon: float = 0, dist: Callable[[np.ndarray, np.ndarray, np.ndarray], float] = pldist, algo: Literal["iter", "rec"] = "iter", return_mask=False) -> np.ndarray:
def rdp(M: np.ndarray, epsilon: float = 0.0, dist: Callable[[np.ndarray, np.ndarray, np.ndarray], float] = pldist, algo: Literal["iter", "rec"] = "iter", return_mask=False) -> np.ndarray:
"""
Simplifies a given array of points using the Ramer-Douglas-Peucker
algorithm.
Expand Down

0 comments on commit c23f3ab

Please sign in to comment.