Package com.opttek.optquest
Class COptQuestKrigMixedDistance
java.lang.Object
com.opttek.optquest.COptQuestKrigMixedDistance
- All Implemented Interfaces:
IKrigDistance
- Direct Known Subclasses:
COptQuestKrigMahalanobisDistance,COptQuestKrigNormalizedDistance
A shared implementation of KrigDistance that handles different types of variables:
locations and "default", which is numeric.
This class handles the definitions of types. The subclasses handle the specific
implementations.
-
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) voidupdateState(double[][] space)
-
Constructor Details
-
COptQuestKrigMixedDistance
- Throws:
COptQuestException
-
-
Method Details
-
getDistance
public double getDistance(double[] v1, double[] v2) Description copied from interface:IKrigDistancereturn the distance between two multi dimensional vectors in any arbitrary space.- Specified by:
getDistancein interfaceIKrigDistance- 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
-
getHessian
- Specified by:
getHessianin interfaceIKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateStatein interfaceIKrigDistance
-
getProjection
- Specified by:
getProjectionin interfaceIKrigDistance- Throws:
COptQuestException
-