Interface IKrigDistance

All Known Implementing Classes:
COptQuestKrigEuclideanDistance

public interface IKrigDistance
A generic interface to return the generalized distance between two vectors For Kriging, we need to know the distance between two vectors. Rather than stick with Euclidean distance (which will be wrong as soon as we get on the surface of the Earth), we'll just create an interface so we can implement arbitrary distance metrics Primarily used by implementations of KrigVariogram
  • Method Summary

    Modifier and Type
    Method
    Description
    double[][]
    getCurvature(double[] v1, double[] v2, Double distance)
     
    double
    getDistance(double[] v1, double[] v2)
    return the distance between two multi dimensional vectors in any arbitrary space.
    double[]
    getGradient(double[] v1, double[] v2, Double distance)
     
    getProjection(int[] dims)
     
    void
    updateState(double[][] space)
     
  • Method Details

    • getDistance

      double getDistance(double[] v1, double[] v2)
      return the distance between two multi dimensional vectors in any arbitrary space.
      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

      double[] getGradient(double[] v1, double[] v2, Double distance)
    • getCurvature

      double[][] getCurvature(double[] v1, double[] v2, Double distance)
    • updateState

      void updateState(double[][] space)
    • getProjection

      IKrigDistance getProjection(int[] dims) throws COptQuestException
      Throws:
      COptQuestException