Package com.opttek.optquest.heatmap
Class COptQuestKrigMixedDistance
java.lang.Object
com.opttek.optquest.heatmap.COptQuestKrigMixedDistance
- All Implemented Interfaces:
com.opttek.optquest.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 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
-
COptQuestKrigMixedDistance
public COptQuestKrigMixedDistance(COptQuestKrigVarInfo varInfo) throws com.opttek.optquest.COptQuestException - Throws:
com.opttek.optquest.COptQuestException
-
-
Method Details
-
getDistance
public double getDistance(double[] v1, double[] v2) Description copied from interface:com.opttek.optquest.IKrigDistancereturn the distance between two multi dimensional vectors in any arbitrary space.- Specified by:
getDistancein interfacecom.opttek.optquest.IKrigDistance- 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
-
getCurvature
- Specified by:
getCurvaturein interfacecom.opttek.optquest.IKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateStatein interfacecom.opttek.optquest.IKrigDistance
-
getProjection
public com.opttek.optquest.IKrigDistance getProjection(int[] dims) throws com.opttek.optquest.COptQuestException - Specified by:
getProjectionin interfacecom.opttek.optquest.IKrigDistance- Throws:
com.opttek.optquest.COptQuestException
-