Class COptQuestKrigEuclideanDistance

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

public class COptQuestKrigEuclideanDistance extends Object implements IKrigDistance
An implementation of KrigDistance that simply returns the Euclidean distance between two vectors
  • Constructor Details

    • COptQuestKrigEuclideanDistance

      public COptQuestKrigEuclideanDistance()
  • Method Details

    • getDistance

      public double getDistance(double[] v1, double[] v2)
      return the distance between two multidimensional 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
    • getCurvature

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

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

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