# Class KrigingInterpolation1D

java.lang.Object
smile.interpolation.KrigingInterpolation1D
All Implemented Interfaces:
`Serializable`, `Interpolation`

public class KrigingInterpolation1D extends Object implements Interpolation
Kriging interpolation for the data points irregularly distributed in space. Kriging belongs to the family of linear least squares estimation algorithms, also known as Gauss-Markov estimation or Gaussian process regression. This class implements ordinary kriging for interpolation with power variogram.
• ## Constructor Summary

Constructors
Constructor
Description
```KrigingInterpolation1D(double[] x, double[] y)```
Constructor.
```KrigingInterpolation1D(double[] x, double[] y, double beta)```
Constructor.
• ## Method Summary

Modifier and Type
Method
Description
`double`
`interpolate(double x)`
Given a value x, return an interpolated value.
`String`
`toString()`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
• ## Constructor Details

• ### KrigingInterpolation1D

public KrigingInterpolation1D(double[] x, double[] y)
Constructor. The power variogram is employed for interpolation.
Parameters:
`x` - the tabulated points.
`y` - the function values at `x`.
• ### KrigingInterpolation1D

public KrigingInterpolation1D(double[] x, double[] y, double beta)
Constructor. The power variogram is employed for interpolation.
Parameters:
`x` - the tabulated points.
`y` - the function values at `x`.
`beta` - the parameter of power variogram. 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.
• ## Method Details

• ### interpolate

public double interpolate(double x)
Description copied from interface: `Interpolation`
Given a value x, return an interpolated value.
Specified by:
`interpolate` in interface `Interpolation`
Parameters:
`x` - a real number.
Returns:
the interpolated function value.
• ### toString

public String toString()
Overrides:
`toString` in class `Object`