Skip to content

Commit

Permalink
style: update docstrings in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
judithspd committed May 13, 2024
1 parent 3b31bd0 commit d9a5291
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions anjana/anonymity/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ def generate_intervals(
sup: typing.Union[int, float],
step: int,
) -> list:
"""Given a quasi-identifier of numeric type, creates a list containing an
"""
Generate intervals as hierarchies.
Given a quasi-identifier of numeric type, creates a list containing an
interval-based generalization (hierarchy) of the values of the quasi-identifier.
The intervals will have the length entered in the parameter step.
The intervals will have the length entered in step.
:param quasi_ident: values of the quasi-identifier on which the interval-based
generalization is to be obtained
Expand Down

0 comments on commit d9a5291

Please sign in to comment.