spatstat / spatstat.geom

Sub-package of spatstat defining spatial data and spatial/geometrical operations
7 stars 4 forks source link

Extend implementation of weighted median #5

Closed baddstats closed 3 years ago

baddstats commented 3 years ago

This is a continuation of issue spatstat/spatstat/#128 which was raised for the original spatstat package, but now affects spatstat.geom.

The original poster argued that our code for weighted.median was incorrect.

However the issue is really that there are multiple definitions of the weighted median (as there are for the unweighted median).

We are now interpreting this as a feature request to implement other definitions of the weighted median.

baddstats commented 3 years ago

The functions weighted.median and weighted.quantile now offer a choice of 3 algorithms (in spatstat.geom 2.3-0.001 and later)