Package com.opttek.optquest
Class COptQuestKrigNormalizedDistance
java.lang.Object
com.opttek.optquest.COptQuestKrigMixedDistance
com.opttek.optquest.COptQuestKrigNormalizedDistance
- All Implemented Interfaces:
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 TypeMethodDescriptiondoublegetDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.double[]getGradient(double[] v1, double[] v2, Double distance) double[][]getHessian(double[] v1, double[] v2, Double distance) getProjection(int[] dims) Methods inherited from class com.opttek.optquest.COptQuestKrigMixedDistance
updateState
-
Constructor Details
-
COptQuestKrigNormalizedDistance
- Throws:
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 interfaceIKrigDistance- 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 interfaceIKrigDistance- Overrides:
getGradientin classCOptQuestKrigMixedDistance
-
getHessian
- Specified by:
getHessianin interfaceIKrigDistance- Overrides:
getHessianin classCOptQuestKrigMixedDistance
-
getProjection
- Specified by:
getProjectionin interfaceIKrigDistance- Overrides:
getProjectionin classCOptQuestKrigMixedDistance- Throws:
COptQuestException
-