Package com.opttek.optquest
Class COptQuestKrigSphericalDistance
java.lang.Object
com.opttek.optquest.COptQuestKrigSphericalDistance
- All Implemented Interfaces:
IKrigDistance
An implementation of KrigDistance that returns the "map distance" between two
vectors on the surface of a sphere. The vectors are assumed to be two
dimensions, in the order of (lat, lon), and in degrees, as for locations on the
Earth. The constructor takes "rin" which is the radius of the sphere.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the spherical distance calculator with the radius of the sphere -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.double[]getGradient(double[] v1, double[] v2, Double distance) double[][]getHessian(double[] v1, double[] v2, Double distance) getProjection(int[] dims) voidupdateState(double[][] space)
-
Constructor Details
-
COptQuestKrigSphericalDistance
public COptQuestKrigSphericalDistance()Initialize the spherical distance calculator with the radius of the sphere
-
-
Method Details
-
getDistance
public double getDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.- Specified by:
getDistancein interfaceIKrigDistance- Parameters:
v1- - the one of the two vectors we're computing the distance betweenv2- - the other of the two vectors we're computing the distance between
-
getGradient
- Specified by:
getGradientin interfaceIKrigDistance
-
getHessian
- Specified by:
getHessianin interfaceIKrigDistance
-
getProjection
- Specified by:
getProjectionin interfaceIKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateStatein interfaceIKrigDistance
-