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) doublegetDistance(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) voidupdateState(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:
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
-
getCurvature
- Specified by:
getCurvaturein interfaceIKrigDistance
-
updateState
public void updateState(double[][] space) - Specified by:
updateStatein interfaceIKrigDistance
-
getProjection
- Specified by:
getProjectionin interfaceIKrigDistance
-