Class COptQuestKrigMixedDistance

java.lang.Object
com.opttek.optquest.heatmap.COptQuestKrigMixedDistance
All Implemented Interfaces:
com.opttek.optquest.IKrigDistance
Direct Known Subclasses:
COptQuestKrigMahalanobisDistance, COptQuestKrigNormalizedDistance

public class COptQuestKrigMixedDistance extends Object implements com.opttek.optquest.IKrigDistance
An shared implementation of KrigDistance that handles different types of variables: right now we handle locations and "default" which is just numeric. We can add categorical and hamming later This class just handles the definitions of types, specific implmeentation are handled int he subclasses
  • Constructor Details

    • COptQuestKrigMixedDistance

      public COptQuestKrigMixedDistance(COptQuestKrigVarInfo varInfo) throws com.opttek.optquest.COptQuestException
      Throws:
      com.opttek.optquest.COptQuestException
  • Method Details

    • getDistance

      public double getDistance(double[] v1, double[] v2)
      Description copied from interface: com.opttek.optquest.IKrigDistance
      return the distance between two multi dimensional vectors in any arbitrary space.
      Specified by:
      getDistance in interface com.opttek.optquest.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 com.opttek.optquest.IKrigDistance
    • getCurvature

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

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

      public com.opttek.optquest.IKrigDistance getProjection(int[] dims) throws com.opttek.optquest.COptQuestException
      Specified by:
      getProjection in interface com.opttek.optquest.IKrigDistance
      Throws:
      com.opttek.optquest.COptQuestException