Package com.opttek.optquest
Class COptQuestKrigEuclideanDistance
java.lang.Object
com.opttek.optquest.COptQuestKrigEuclideanDistance
- All Implemented Interfaces:
IKrigDistance
An implementation of KrigDistance that simply
returns the Euclidean distance between two vectors
-
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 multidimensional vectors in any arbitrary space.double[]
getGradient
(double[] v1, double[] v2, Double distance) getProjection
(int[] dims) void
updateState
(double[][] space)
-
Constructor Details
-
COptQuestKrigEuclideanDistance
public COptQuestKrigEuclideanDistance()
-
-
Method Details
-
getDistance
public double getDistance(double[] v1, double[] v2) return the distance between two multidimensional vectors in any arbitrary space.- Specified by:
getDistance
in 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:
getGradient
in interfaceIKrigDistance
-
getCurvature
- Specified by:
getCurvature
in interfaceIKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateState
in interfaceIKrigDistance
-
getProjection
- Specified by:
getProjection
in interfaceIKrigDistance
-