KrigingInterpolant

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 classdef KrigingInterpolant < RBFInterpolant
0002     %KRIGING Kriging interpolation method. Note that Kriging is just a
0003     %  variant of a RBF interpolator where the RBF is a Variogram.
0004     %  We can obtain Ordinary and Universal Kriging depending on the
0005     %  'PolynomialDegree' parameter:
0006     %       - KrigingInterpolant(..., 'PolynomialDegree', 0): Ordinary Kriging
0007     %       - KrigingInterpolant(..., 'PolynomialDegree', >0): Universal Kriging
0008     
0009     properties
0010         % No properties required for this function other than those on
0011         % RBFInterpolant
0012     end
0013     
0014     methods
0015         function obj = KrigingInterpolant(x, y, z, variogram, varargin)
0016             %KRIGING Construct an instance of this class
0017             
0018             if ~isa(variogram, 'Variogram')
0019                 error('The ''variogram'' argument needs to be an instance of the class Variogram');
0020             end
0021             
0022             % Superclass constructor
0023             obj@RBFInterpolant(x, y, z, varargin{:});
0024             
0025             % Set the RBF to be the variogram (note that this overrides the
0026             % definition of 'RBF' parameter in the original RBFInterpolant
0027             % constructor)
0028             obj.rbfFun = @variogram.eval;
0029         end        
0030     end
0031 end
0032

Generated on Thu 10-Dec-2020 17:34:27 by m2html © 2005