1% STK_MAKE_KREQ [STK internal]
2
3% Copyright Notice
4%
5%    Copyright (C) 2017 CentraleSupelec
6%
7%    Author:  Julien Bect  <julien.bect@centralesupelec.fr>
8
9% Copying Permission Statement
10%
11%    This file is part of
12%
13%            STK: a Small (Matlab/Octave) Toolbox for Kriging
14%               (http://sourceforge.net/projects/kriging)
15%
16%    STK is free software: you can redistribute it and/or modify it under
17%    the terms of the GNU General Public License as published by the Free
18%    Software Foundation,  either version 3  of the License, or  (at your
19%    option) any later version.
20%
21%    STK is distributed  in the hope that it will  be useful, but WITHOUT
22%    ANY WARRANTY;  without even the implied  warranty of MERCHANTABILITY
23%    or FITNESS  FOR A  PARTICULAR PURPOSE.  See  the GNU  General Public
24%    License for more details.
25%
26%    You should  have received a copy  of the GNU  General Public License
27%    along with STK.  If not, see <http://www.gnu.org/licenses/>.
28
29function kreq = stk_make_kreq (M_post, x)
30
31% Create prior cross-covariance matrix (and design matrix at x)
32[Kti, Pt] = stk_make_matcov (M_post.prior_model, x, M_post.input_data);
33
34% Create full kriging equation object
35kreq = stk_set_righthandside (M_post.kreq, Kti, Pt);
36
37end % function
38
39