Class: QgsIDWInterpolator¶
Inverse distance weight interpolator.
Class Hierarchy¶
Base classes¶
Interface class for interpolations. |
Methods
Returns the distance coefficient, the parameter that sets how the values are weighted with distance. |
|
Sets the distance coefficient, the parameter that sets how the values are weighted with distance. |
- class qgis.analysis.QgsIDWInterpolator[source]¶
Bases:
QgsInterpolator
- __init__(layerData: Iterable[QgsInterpolator.LayerData])
Constructor for QgsIDWInterpolator, with the specified
layerData
sources.- Parameters:
layerData (Iterable[QgsInterpolator.LayerData])
- __init__(a0: QgsIDWInterpolator)
- Parameters:
a0 (QgsIDWInterpolator)
- distanceCoefficient(self) float [source]¶
Returns the distance coefficient, the parameter that sets how the values are weighted with distance. Smaller values mean sharper peaks at the data points. The default is a coefficient of 2.
Point values are weighted by 1 / ( distance ^ coefficient ).
See also
- Return type:
float
- setDistanceCoefficient(self, coefficient: float)[source]¶
Sets the distance
coefficient
, the parameter that sets how the values are weighted with distance. Smaller values mean sharper peaks at the data points.Point values are weighted by 1 / ( distance ^ coefficient ).
See also
- Parameters:
coefficient (float)