Catalano.Statistics.Kernels
Class ThinPlateSpline
- java.lang.Object
-
- Catalano.Statistics.Kernels.ThinPlateSpline
-
- All Implemented Interfaces:
- IMercerKernel<double[]>, java.io.Serializable
public class ThinPlateSpline extends java.lang.Object implements IMercerKernel<double[]>
Thin Plate Spline Kernel. Thin plate splines (TPS) are a spline-based technique for data interpolation and smoothing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ThinPlateSpline()Constructs a new ThinPlateSpline Kernel.ThinPlateSpline(double sigma)Constructs a new ThinPlateSpline Kernel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleFunction(double[] x, double[] y)The kernel function.doublegetSigma()Get sigma.voidsetSigma(double sigma)Set sigma.
-
-
-
Constructor Detail
-
ThinPlateSpline
public ThinPlateSpline()
Constructs a new ThinPlateSpline Kernel.
-
ThinPlateSpline
public ThinPlateSpline(double sigma)
Constructs a new ThinPlateSpline Kernel.- Parameters:
sigma- Sigma.
-
-
Method Detail
-
getSigma
public double getSigma()
Get sigma.- Returns:
- Sigma.
-
setSigma
public void setSigma(double sigma)
Set sigma.- Parameters:
sigma- Sigma.
-
Function
public double Function(double[] x, double[] y)Description copied from interface:IMercerKernelThe kernel function.- Specified by:
Functionin interfaceIMercerKernel<double[]>- Parameters:
x- Vector x in input space.y- Vectory in input space.- Returns:
- Dot product in feature (kernel) space.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG