Hello,
I am trying to use the multinomial distribution provided by the GSLRandomEngine tools in MathMore.
Specifically:
ROOT::Math::GSLRngMT * random = new GSLRngMT();
random->Initialize();
vector evtsPerChannel = random->Multinomial(n, probabilities);
and I get a malloc problem when calling the Multinomial method:
*** glibc detected *** /afs/cern.ch/cms/sw/slc5_ia32_gcc434/lcg/root/5.22.00d-cms8/bin/root.exe: malloc(): memory corruption: 0x08a3fa40 ***
Would you know what the problem is?
Thanks!
Thomas.