Package com.opttek.optquest
Class COptQuestKrigMixedDistance
java.lang.Object
com.opttek.optquest.COptQuestKrigMixedDistance
- All Implemented Interfaces:
IKrigDistance
- Direct Known Subclasses:
COptQuestKrigMahalanobisDistance,COptQuestKrigNormalizedDistance
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 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
-