Class TPSInterpolator
- java.lang.Object
-
- org.hortonmachine.gears.modules.r.interpolation2d.core.TPSInterpolator
-
- All Implemented Interfaces:
ISurfaceInterpolator
public class TPSInterpolator extends Object implements ISurfaceInterpolator
Implementation of TPS Interpolation based on thin plate spline (TPS) algorithmTPS developed following: http://elonen.iki.fi/code/tpsdemo/index.html
The implementation is meant to be threadsafe.
Note that this implementation works only with metric data.
- Author:
- jezekjan, Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description TPSInterpolator(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
-
getBuffer
public double getBuffer()
- Specified by:
getBufferin interfaceISurfaceInterpolator
-
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.
-
-