diff options
Diffstat (limited to 'inst/sampling/stk_sampling_nestedlhs.m')
-rw-r--r-- | inst/sampling/stk_sampling_nestedlhs.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inst/sampling/stk_sampling_nestedlhs.m b/inst/sampling/stk_sampling_nestedlhs.m index 4795361..307aced 100644 --- a/inst/sampling/stk_sampling_nestedlhs.m +++ b/inst/sampling/stk_sampling_nestedlhs.m @@ -49,17 +49,18 @@ % Copyright Notice % +% Copyright (C) 2017, 2018, 2021 CentraleSupelec % Copyright (C) 2017 LNE -% Copyright (C) 2017, 2018 CentraleSupelec % -% Authors: Remi Stroh <remi.stroh@lne.fr> +% Author: Remi Stroh <remi.stroh@lne.fr> +% % Copying Permission Statement % % This file is part of % % STK: a Small (Matlab/Octave) Toolbox for Kriging -% (http://sourceforge.net/projects/kriging) +% (https://github.com/stk-kriging/stk/) % % STK is free software: you can redistribute it and/or modify it under % the terms of the GNU General Public License as published by the Free @@ -181,7 +182,7 @@ for k_lev = nLev:-1:1; %begin by the end X_new_kl = NaN(n_new_k, dim); %the matrix to add - [ignd, random_index] = sort(rand(n_new_k, dim), 1); %#ok<ASGLU> CG#07 + [~, random_index] = sort(rand(n_new_k, dim), 1); for i = 1:dim X_new_kl(:, i) = list_nb_new_k(random_index(:, i), i); end |