Thank you @dastudillo I read @moneta 's code, but I didn’t understand so much…
std::vector<double> x(100);
gRandom->RndmArray(x.size(),x.data());
TMath::StdDev(x.begin(), x.end() );
for example, to calcucalte how many sigma is the according between the three results
a. 0.692 +/-0.011
b. 0.6833 +/- 0.0053
c. 0.6712 +/- 0.0036
where do I have to write these number in @moneta 's code?
I tried to write
gRandom->RndmArray(x.size(3),x.data(0.692, 0.6833, 0.6712));
but I got this error
I also tried @eguiraud’s code in this way
using namespace ROOT::VecOps;
RVec<float> rv = {0.11, 0.0053, 0.0036};
auto srddev = StdDev(rv);
but
a. Does this methos use only the errors of the results and not the values (0.692, 0.6833, 0.6712)?
b. You see…ROOT closes automatically when I run the
auto srddev = StdDev(rv);
thank you

