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) 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
-
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.IKrigDistance
return the distance between two multi dimensional vectors in any arbitrary space.- Specified by:
getDistance
in 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:
getGradient
in interfacecom.opttek.optquest.IKrigDistance
-
getCurvature
- Specified by:
getCurvature
in interfacecom.opttek.optquest.IKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateState
in interfacecom.opttek.optquest.IKrigDistance
-
getProjection
public com.opttek.optquest.IKrigDistance getProjection(int[] dims) throws com.opttek.optquest.COptQuestException - Specified by:
getProjection
in interfacecom.opttek.optquest.IKrigDistance
- Throws:
com.opttek.optquest.COptQuestException
-