Skip to content

Average value option for distance filter #733

@adebardo

Description

@adebardo

Once the issue #699 is closed

Context

Currently, the distance_filter function computes the local average using a Gaussian filter.
It would be useful to make this averaging method configurable to support alternative approaches, such as median filter, mean filter, or other custom kernels.

Code

  • Add a new parameter, average_method: str = "gaussian", with options such as "gaussian", "median", "mean".
  • Ensure consistent handling of NaN values for all methods.

Tests

Adding the necessary unit tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature improvement or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions