Skip to main content

knn

GitHub source

knn

evo.compute.tasks.geostatistics.declustering.knn

knn(source: Any, grid: Any, target: AnyTargetAttribute, neighborhood: SearchNeighborhood) -> DeclusteringParameters

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().

Was this page helpful?