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) 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) com.opttek.optquest.IKrigDistance
getProjection
(int[] dims) void
updateState
(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:
getDistance
in interfacecom.opttek.optquest.IKrigDistance
- Overrides:
getDistance
in 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:
getGradient
in interfacecom.opttek.optquest.IKrigDistance
- Overrides:
getGradient
in classCOptQuestKrigMixedDistance
-
getCurvature
- Specified by:
getCurvature
in interfacecom.opttek.optquest.IKrigDistance
- Overrides:
getCurvature
in classCOptQuestKrigMixedDistance
-
getProjection
public com.opttek.optquest.IKrigDistance getProjection(int[] dims) throws com.opttek.optquest.COptQuestException - Specified by:
getProjection
in interfacecom.opttek.optquest.IKrigDistance
- Overrides:
getProjection
in classCOptQuestKrigMixedDistance
- Throws:
com.opttek.optquest.COptQuestException
-
updateState
public void updateState(double[][] space) - Specified by:
updateState
in interfacecom.opttek.optquest.IKrigDistance
- Overrides:
updateState
in classCOptQuestKrigMixedDistance
-