Package com.opttek.optquest
Interface IKrigDistance
- All Known Implementing Classes:
COptQuestKrigEuclideanDistance,COptQuestKrigMahalanobisDistance,COptQuestKrigMixedDistance,COptQuestKrigNormalizedDistance,COptQuestKrigSphericalDistance
public interface IKrigDistance
A generic interface to return the generalized distance between two vectors.
For Kriging, we need to know the distance between two vectors. Euclidean
distance is wrong on the surface of the Earth, so implementations of this
interface can define arbitrary distance metrics.
Primarily used by implementations of KrigVariogram
-
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)
-
Method Details
-
getDistance
double getDistance(double[] v1, double[] v2) return the distance between two multi dimensional vectors in any arbitrary space.- 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
-
getHessian
-
updateState
void updateState(double[][] space) -
getProjection
- Throws:
COptQuestException
-