Skip to content

Commit 361f0d3

Browse files
committed
stk_predict.m: Withdraw new syntax
1 parent 30a6447 commit 361f0d3

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

core/stk_predict.m

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
% STK_PREDICT performs a kriging prediction
22
%
33
% CALL: ZP = stk_predict (MODEL, XP)
4-
% CALL: ZP = stk_predict (MODEL, DATA, XP)
54
% CALL: ZP = stk_predict (MODEL, XI, ZI, XP)
65
%
76
% performs a kriging prediction at the points XP, given the MODEL and,
8-
% if available, additional data provided as a single DATA agument or
9-
% as apair (XI, ZI).
7+
% if available, additional data provided as a pair (XI, ZI).
108
%
119
% The MODEL argument can be either a prior model structure (as provided
1210
% by stk_model) or a model object (for instance, a posterior model
@@ -15,11 +13,6 @@
1513
% model is first updated with the data before the prediction is actually
1614
% carried out.
1715
%
18-
% The DATA argument, in the second calling syntax, is expected to be an
19-
% stk_iodata object. Given separate input/output arguments XI an ZI,
20-
% using the fourth calling syntax is equivalent to using a DATA argument
21-
% equal to stk_iodata (XI, ZI).
22-
%
2316
% The input arguments XI, ZI, and XP can be either numerical matrices or
2417
% dataframes. More precisely, on an input space of dimension DIM,
2518
%
@@ -94,15 +87,15 @@
9487

9588
case 2 % CALL: [...] = stk_predict (MODEL, X_PRD)
9689
x_prd = varargin{1};
97-
98-
case 3 % CALL: [...] = stk_predict (MODEL, DATA, X_PRD)
99-
model = stk_model_gpposterior (model, varargin{1});
100-
x_prd = varargin{2};
90+
91+
case 3
92+
stk_error ('Incorrect number of input arguments', ...
93+
'SyntaxError');
10194

10295
case 4 % CALL: [...] = stk_predict (MODEL, X_OBS, Z_OBS, X_PRD)
10396
model = stk_model_gpposterior (model, varargin{1}, varargin{2});
10497
x_prd = varargin{3};
105-
98+
10699

107100
end % switch
108101

0 commit comments

Comments
 (0)