Class COptQuestKrigSphericalDistance

java.lang.Object
com.opttek.optquest.COptQuestKrigSphericalDistance
All Implemented Interfaces:
IKrigDistance

public class COptQuestKrigSphericalDistance extends Object implements 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 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:
      getDistance in interface IKrigDistance
      Parameters:
      v1 - - the one of the two vectors we're computing the distance between
      v2 - - the other of the two vectors we're computing the distance between
    • getGradient

      public double[] getGradient(double[] v1, double[] v2, Double distance)
      Specified by:
      getGradient in interface IKrigDistance
    • getHessian

      public double[][] getHessian(double[] v1, double[] v2, Double distance)
      Specified by:
      getHessian in interface IKrigDistance
    • getProjection

      public IKrigDistance getProjection(int[] dims)
      Specified by:
      getProjection in interface IKrigDistance
    • updateState

      public void updateState(double[][] space)
      Specified by:
      updateState in interface IKrigDistance