eaarl.rcf¶
Random-consensus filter algorithms
-
eaarl.rcf.rcf_grid(x, y, z, width, cell_size, min_winners=3, tie=None)[source]¶ Determines which points pass the gridded RCF filter
Returns an array of Boolean values where True means a point passed the filter. The filter divides the points into cells based on cell_size, then finds points with elevation values that pass the RCF filter using the given width.
- Parameters
- x : array-like of floats
- x coordinates for points
- y : array-like of floats
- y coordinates for points
- z : array-like of floats
- z coordinates for points
- width : numeric
- Vertical search window to use in each cell
- cell_size : numeric
- Horizontal cell size
- min_winners : integer
- Minimum number of points needed for winning points to pass the filter in a grid cell
- tie : string or None
- Specifies how to handle a tie. Valid values:
- ‘high’ or None - Uses the highest winning window
- ‘mid’ - Uses the middle winning window
- ‘low’ - Uses the lowest winning window
-
eaarl.rcf.rcf_jury(jury, width, tie=None)[source]¶ Find winning window of jury
- Parameters
- jury : array-like of numeric
- Jury of values to search for winning window
- width : numeric
- Search window
- tie : string or None
- Specifies how to handle a tie. Valid values:
- ‘high’ or None - Uses the highest winning window
- ‘mid’ - Uses the middle winning window
- ‘low’ - Uses the lowest winning window