Skip to content
Snippets Groups Projects

rand_multivariate_student.m: suppress spurious output

Merged Johannes Pfeifer requested to merge JohannesPfeifer/dynare:t_output into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -40,7 +40,7 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df,n)
@@ -40,7 +40,7 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df,n)
% You should have received a copy of the GNU General Public License
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
if nargin == 3
if nargin == 3
n = 1
n = 1;
end
end
dim = length(Mean);
dim = length(Mean);
draw = Mean + (randn(n,dim) * Sigma_upper_chol) .* sqrt(df./sum(randn(n,df).^2,2));
draw = Mean + (randn(n,dim) * Sigma_upper_chol) .* sqrt(df./sum(randn(n,df).^2,2));
Loading