Skip to content

Commit

Permalink
Removing pixel_radius parameter from normal distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Feb 11, 2023
1 parent b558503 commit 3efbd92
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pygeoprocessing/kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def normal_distribution_kernel(
target_kernel_path: Text,
sigma: Union[int, float],
n_std_dev: Union[int, float] = 3,
pixel_radius: Union[int, float] = None,
normalize: bool = True):
"""Create an decay kernel following a normal distribution.
Expand All @@ -171,8 +170,6 @@ def normal_distribution_kernel(
n_std_dev: The number of standard deviations to include in the kernel.
The kernel will have values of 0 when at a distance of
``(sigma * n_std_dev)`` away from the centerpoint.
pixel_radius: The radius of the target kernel, in pixels. If ``None``,
then ``math.ceil(sigma * n_std_dev)`` will be used.
normalize: Whether to normalize the kernel.
Returns:
Expand All @@ -186,7 +183,6 @@ def _normal_decay(dist):
target_kernel_path=target_kernel_path,
distance_decay_function=_normal_decay,
max_distance=(sigma * n_std_dev),
pixel_radius=pixel_radius,
normalize=normalize
)

Expand Down

0 comments on commit 3efbd92

Please sign in to comment.