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

    • getDistance

      double getDistance(double[] v1, double[] v2) throws COptQuestException
      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
      Throws:
      COptQuestException
    • getWeights

      double[] getWeights()