From 84ed2f43b5fd220c2db9203ba1c866e0f00b7d7a Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta Date: Wed, 2 Nov 2016 11:21:53 +0100 Subject: [PATCH] Increase size of vectors --- tutorials/r/example.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/r/example.C b/tutorials/r/example.C index 65a2291cc23b1..e73f5a6a0cf14 100644 --- a/tutorials/r/example.C +++ b/tutorials/r/example.C @@ -22,8 +22,8 @@ void example() { // compute standard deviation of 1000 vector normal numbers - double std_dev_r = r.Eval("sd(rnorm(1000))"); - std::vector v = r.Eval("rnorm(1000)"); + double std_dev_r = r.Eval("sd(rnorm(10000))"); + std::vector v = r.Eval("rnorm(10000)"); double std_dev_root = TMath::StdDev(v.begin(),v.end()); std::cout << "standard deviation from R = " << std_dev_r << std::endl; std::cout << "standard deviation from ROOT = " << std_dev_root << std::endl;