Package com.opttek.optquest.heatmap
Class COptQuestKrigMahalanobisDistance
java.lang.Object
com.opttek.optquest.heatmap.COptQuestKrigMixedDistance
com.opttek.optquest.heatmap.COptQuestKrigMahalanobisDistance
- All Implemented Interfaces:
com.opttek.optquest.IKrigDistance
An implementation of KrigDistance that normalized the variables to be on
[0,1] and computed the Euclidean distance after normalization. Additionally
if we have a lat/lon pair we use a spherical distance computation, and if we
have a categorical variable, we use a Hamming distance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]getCurvature(double[] v1, double[] v2, Double distance) doublegetDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.double[]getGradient(double[] v1, double[] v2, Double distance) com.opttek.optquest.IKrigDistancegetProjection(int[] dims) voidupdateState(double[][] space)
-
Constructor Details
-
COptQuestKrigMahalanobisDistance
public COptQuestKrigMahalanobisDistance(COptQuestKrigVarInfo varInfo) throws com.opttek.optquest.COptQuestException - Throws:
com.opttek.optquest.COptQuestException
-
-
Method Details
-
getDistance
public double getDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.- Specified by:
getDistancein interfacecom.opttek.optquest.IKrigDistance- Overrides:
getDistancein classCOptQuestKrigMixedDistance- Parameters:
v1- - the one of the two vectors we're computing the distance betweenv2- - the other of the two vectors we're computing the distance between
-
getGradient
- Specified by:
getGradientin interfacecom.opttek.optquest.IKrigDistance- Overrides:
getGradientin classCOptQuestKrigMixedDistance
-
getCurvature
- Specified by:
getCurvaturein interfacecom.opttek.optquest.IKrigDistance- Overrides:
getCurvaturein classCOptQuestKrigMixedDistance
-
getProjection
public com.opttek.optquest.IKrigDistance getProjection(int[] dims) throws com.opttek.optquest.COptQuestException - Specified by:
getProjectionin interfacecom.opttek.optquest.IKrigDistance- Overrides:
getProjectionin classCOptQuestKrigMixedDistance- Throws:
com.opttek.optquest.COptQuestException
-
updateState
public void updateState(double[][] space) - Specified by:
updateStatein interfacecom.opttek.optquest.IKrigDistance- Overrides:
updateStatein classCOptQuestKrigMixedDistance
-