Inverse-Distance🍋
IDW (Entity)
🍋
Inverse Distance Weighting Solver class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metric |
Metric |
Metric used for distance computation. |
required |
power |
int, optionnal |
Power used for distance computation. Defaults to 1. |
1 |
neighbors_number |
int |
Number of neighbors taken for weighting. Defaults to None. |
None |
axes |
List[Coord], optionnal |
If solver is 2D or 3D. Defaults to [Coord.U, Coord.V, Coord.W]. |
[<Coord.U: 'U'>, <Coord.V: 'V'>, <Coord.W: 'W'>] |
Attributes:
Name | Type | Description |
---|---|---|
metric |
Metric |
Metric used for distance computation. |
power |
int, optionnal |
Power used for distance computation. Defaut is L1 norm. |
neighbors_number |
int |
Number of neighbors taken for weighting. |
axes |
List[Coord], optionnal |
If solver is 2D or 3D. |
axes: List[geolime.base.enums.Coord]
property
readonly
🍋
Return Solver Axis.
Returns:
Type | Description |
---|---|
List[Coord] |
List of axes. |
metric: Metric
property
readonly
🍋
Return Solver Metric.
Returns:
Type | Description |
---|---|
Metric |
solver Metric. |
neighbors_number: int
property
readonly
🍋
Return Solver Maximum Neighbors used.
Returns:
Type | Description |
---|---|
int |
Solver maximum neighbors. |
power: int
property
readonly
🍋
Return Solver Power.
Returns:
Type | Description |
---|---|
int |
solver Power. |
solve(self, obj, obj_region, obj_attribute, support, support_region, support_attribute)
🍋
Solve IDW on a support using a conditioning object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj |
GeoRefObject |
Conditioning Object. |
required |
obj_region |
str |
Spatial subset of conditionining. |
required |
obj_attribute |
str |
Property to estimate. |
required |
support |
GeoRefObject |
Object to estimate onto. |
required |
support_region |
str |
Spatial subset of estimation. |
required |
support_attribute |
str |
Property name to add in support. |
required |