Class KrigingInterpolator.Variogram

java.lang.Object
com.irurueta.numerical.interpolation.KrigingInterpolator.Variogram
Enclosing class:
KrigingInterpolator

public static class KrigingInterpolator.Variogram extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    private 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

    Constructors
    Constructor
    Description
    Variogram(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 Type
    Method
    Description
    double
    evaluate(double r)
    Evaluates variogram at provided distance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_BETA

      public static final double DEFAULT_BETA
      Default Beta value to be used.
      See Also:
    • DEFAULT_NUG

      public static final double DEFAULT_NUG
      Default offset to use.
      See Also:
    • alph

      private final double alph
      Estimated alpha of variogram.
    • bet

      private final double bet
      Beta of variogram.
    • nugsq

      private final double nugsq
      Squared 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.