2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
NearestNeighborMap Class Reference
+ Inheritance diagram for NearestNeighborMap:
+ Collaboration diagram for NearestNeighborMap:

Detailed Description

A map (spatial distribution of data) returning the nearest neighbor to the queried position
Stores position referenced objects.

z_weight is a weight, how important vertical differences are for neighborhood.
          0 means only horizontal distance and a high value only uses the height as a distance measure.
The distance to be minimized is calculated as: sqrt((x1-x2)**2+(y1-y2)**2)+abs(z1-z2)*z_weight 

Public Member Functions

 __call__ (self, x, y, z=0)
 

Member Function Documentation

◆ __call__()

__call__ ( self,
x,
y,
z = 0 )
 returns the nearest neighbor object to the given position
    The distance to be minimized is calculated as: sqrt((x1-x2)**2+(y1-y2)**2)+abs(z1-z2)*z_weight 

Reimplemented from Map.