[GRASS-git] [OSGeo/grass] 20f370: r.neighbors: add option for exponential weighting ...

Stefan Blumentrath noreply at github.com
Fri Jun 25 03:26:33 PDT 2021

  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 20f370c9ee983fd8bb30e9dd55c9acf528f562ad
  Author: Stefan Blumentrath <stefan.blumentrath at gmx.de>
  Date:   2021-06-25 (Fri, 25 Jun 2021)

  Changed paths:
    M raster/r.neighbors/local_proto.h
    M raster/r.neighbors/main.c
    M raster/r.neighbors/r.neighbors.html
    M raster/r.neighbors/readweights.c
    M raster/r.neighbors/testsuite/test_r_neighbors.py

  Log Message:
  r.neighbors: add option for exponential weighting (#597)

* add exponent weight

* add weights function option

* add weights function option

* avoid function duplication

* make choice none all lowercase

* Dont check for non-zero result from strcmp in if statement

* add weigth functions

* use function pointer to weigth functions

* apply grass_indent.sh

* update tests with the new options

* adjust documentation

* r.neighbors: Make weighting_function parameter descriptions translatable

Co-authored-by: Māris Nartišs <maris.gis at gmail.com>

More information about the grass-commit mailing list