Class PowerVariogram
- java.lang.Object
-
- smile.interpolation.variogram.PowerVariogram
-
public class PowerVariogram extends java.lang.Object implements Variogram
Power variogramv(r) = c + α rβ
where β is fixed and α is fitted by unweighted least squares over all pairs of data points. The value of β should be in the range 1 ≤ β < 2. A good general choice is 1.5, but for functions with a strong linear trend, we may experiment with values as large as 1.99.
The parameter c is the so-called nugget effect. Though the value of the variogram for h = 0 is strictly 0, several factors, such as sampling error and short scale variability, may cause sample values separated by extremely small distances to be quite dissimilar. This causes a discontinuity at the origin of the variogram. The vertical jump from the value of 0 at the origin to the value of the variogram at extremely small separation distances is called the nugget effect.
-
-
Constructor Summary
Constructors Constructor and Description PowerVariogram(double[][] x, double[] y)Constructor.PowerVariogram(double[][] x, double[] y, double beta)Constructor.PowerVariogram(double[][] x, double[] y, double beta, double nugget)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublef(double r)Compute the value of the function at x.java.lang.StringtoString()
-
-
-
Constructor Detail
-
PowerVariogram
public PowerVariogram(double[][] x, double[] y)Constructor. No nugget effect and β = 1.5 and α will be estimated from x and y.
-
PowerVariogram
public PowerVariogram(double[][] x, double[] y, double beta)Constructor. No nugget effect and α will be estimated from x and y.
-
PowerVariogram
public PowerVariogram(double[][] x, double[] y, double beta, double nugget)Constructor. α will be estimated from x and y.- Parameters:
nugget- the nugget effect parameter. The height of the jump of the variogram at the discontinuity at the origin.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG