knn
knn
evo.compute.tasks.geostatistics.declustering.knn
Create KNN (nearest-neighbour) declustering parameters.
Uses equal neighbour weights (arithmetic mean). For true nearest-neighbour behaviour, set max_samples=1 on the :class:~evo.compute.tasks.common.SearchNeighborhood.
Args: source: Source sample locations (geoscience object URL or DeclusteringSource). grid: Evaluation grid (geoscience object URL or DeclusteringGrid). target: Target object and attribute to write declustering weights to. neighborhood: Search neighborhood parameters.
Returns: Configured DeclusteringParameters ready for run().