Class IDWInterpolator
- java.lang.Object
-
- org.hortonmachine.gears.modules.r.interpolation2d.core.IDWInterpolator
-
- All Implemented Interfaces:
ISurfaceInterpolator
public class IDWInterpolator extends Object implements ISurfaceInterpolator
Implementation of IDW Interpolation.- Author:
- jezekjan, Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description IDWInterpolator(double buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBuffer()doublegetValue(org.locationtech.jts.geom.Coordinate[] controlPoints, org.locationtech.jts.geom.Coordinate interpolated)Gets an interpolated value in a agiven position, from a set of control values.
-
-
-
Method Detail
-
getValue
public double getValue(org.locationtech.jts.geom.Coordinate[] controlPoints, org.locationtech.jts.geom.Coordinate interpolated)Description copied from interface:ISurfaceInterpolatorGets an interpolated value in a agiven position, from a set of control values.- Specified by:
getValuein interfaceISurfaceInterpolator- Parameters:
controlPoints- all the controlpoints to consider to evaluate the interpolated point.interpolated- the coordinate in which to interpolate.- Returns:
- the interpolated z value.
-
getBuffer
public double getBuffer()
- Specified by:
getBufferin interfaceISurfaceInterpolator
-
-