Class KrigingInterpolator.Variogram
java.lang.Object
com.irurueta.numerical.interpolation.KrigingInterpolator.Variogram
- Enclosing class:
- KrigingInterpolator
Variogram function.
Follows expression: v(r) = alpha * r^beta
where beta is considered fixed and alpha is fitted by unweighted least squares over all pairs
of data points i and j.
The value of beta should be in the range 1 <= beta < 2.
A good general choice is 1.5, but for functions with a strong linear trend, you may want to
experiment with values as large as 1.99 (The value 2 gives a degenerate matrix and meaningless
results).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
Estimated alpha of variogram.private final double
Beta of variogram.static final double
Default Beta value to be used.static final double
Default offset to use.private final double
Squared offset. -
Constructor Summary
ConstructorsConstructorDescriptionVariogram
(com.irurueta.algebra.Matrix x, double[] y) Constructor using default beta = 1.5 and zero offset.Variogram
(com.irurueta.algebra.Matrix x, double[] y, double beta) Constructor using default zero offset.Variogram
(com.irurueta.algebra.Matrix x, double[] y, double beta, double nug) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluate
(double r) Evaluates variogram at provided distance.
-
Field Details
-
DEFAULT_BETA
public static final double DEFAULT_BETADefault Beta value to be used.- See Also:
-
DEFAULT_NUG
public static final double DEFAULT_NUGDefault offset to use.- See Also:
-
alph
private final double alphEstimated alpha of variogram. -
bet
private final double betBeta of variogram. -
nugsq
private final double nugsqSquared offset.
-
-
Constructor Details
-
Variogram
public Variogram(com.irurueta.algebra.Matrix x, double[] y, double beta, double nug) Constructor.- Parameters:
x
- Data to compute interpolations from. Each row corresponds to a point. The number of columns determines the number of dimensions of provided points.y
- Function values for each provided point.beta
- Beta to be used for variogram. The value of beta should be in the range 1 <= beta < 2.nug
- Offset of variogram.
-
Variogram
public Variogram(com.irurueta.algebra.Matrix x, double[] y, double beta) Constructor using default zero offset.- Parameters:
x
- Data to compute interpolations from. Each row corresponds to a point. The number of columns determines the number of dimensions of provided points.y
- Function values for each provided point.beta
- Beta to be used for variogram. The value of beta should be in the range 1 <= beta < 2.
-
Variogram
public Variogram(com.irurueta.algebra.Matrix x, double[] y) Constructor using default beta = 1.5 and zero offset.- Parameters:
x
- Data to compute interpolations from. Each row corresponds to a point. The number of columns determines the number of dimensions of provided points.y
- Function values for each provided point.
-
-
Method Details
-
evaluate
public double evaluate(double r) Evaluates variogram at provided distance.- Parameters:
r
- a distance.- Returns:
- variogram evaluation.
-