[root] / trunk / math / mathcore / src / TRandom3.cxx Repository:
ViewVC logotype

Log of /trunk/math/mathcore/src/TRandom3.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 49217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 11 09:57:14 2013 UTC (21 months, 1 week ago) by moneta
File length: 8272 byte(s)
Diff to previous 48295
update documentation for TRandom, The interval of the generated numbers in Rndm() is (0,1) and NOT (0,1]

Revision 48295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 15 08:57:14 2013 UTC (2 years ago) by moneta
File length: 8179 byte(s)
Diff to previous 48161
Coverity fixes

Revision 48161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 20 15:40:23 2012 UTC (2 years, 1 month ago) by moneta
File length: 8160 byte(s)
Diff to previous 37531
fix seeding for seed = 0 (random seed from TUUID)

 Use TUUID to generate 3 unique seeds for TRandom2.
TRandom2 os then used for generating random states for both TRandom1 and TRandom3

TRandom is now initialized using the lowest 4 bytes of TUUID

This fixes the bug reported in https://savannah.cern.ch/bugs/?99516
All the 4 generators now pased the test reported by  Chris (see bug report)

Revision 37531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 20:38:06 2010 UTC (4 years, 1 month ago) by pcanal
File length: 7921 byte(s)
Diff to previous 22885
Fix several memory leaks (TSchemaRuleSet, TClass, TFolder, stress, TStreamerInfo, TFile, TFree)

Introduce a new preprocessor symbol (R__COMPLETE_MEM_TERMINATION) that allows for
better tracking of memory leak.   When ROOT is compiled with this symbols is defined,
globally held objects will be deleted at the time of the process termination.

With this symbol defined, some tests (root.exe -b -l -q ; test/stress ;) run under
'valgrind --leak-check=yes' with no memory leak reports (but still a few still
reacheable blocks).   However, this does not yet support (i.e. segfault at termination) 
the case where TFunctions are created on the 'CINT' stack (and thus fails roottest) and
some uses of CINT functions for fitting ...  and probably also fails on Windows.

Revision 22885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 28 13:57:25 2008 UTC (6 years, 9 months ago) by rdm
File length: 7733 byte(s)
Copied from: trunk/math/src/TRandom3.cxx revision 22862
Diff to previous 22866
move the following directories under the new "math" meta directory:
   mathcore
   mathmore
   fftw
   foam
   fumili
   genvector
   matrix
   minuit
   minuit2
   mlp
   physics
   smatrix
   splot
   unuran
   quadp

Revision 22866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 27 15:32:50 2008 UTC (6 years, 9 months ago) by rdm
Original Path: trunk/mathcore/src/TRandom3.cxx
File length: 7733 byte(s)
Copied from: trunk/math/src/TRandom3.cxx revision 22862
Diff to previous 20882
move remaining files from math to mathcore (they were part of libMathCore
anyway). Include paths remain the same.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/math/src/TRandom3.cxx
File length: 7729 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/math/src/TRandom3.cxx
File length: 7729 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/math/src/TRandom3.cxx
File length: 7779 byte(s)
Diff to previous 17853
remove :$ from tag line

Revision 17853 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 10 13:37:53 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7789 byte(s)
Diff to previous 17818
Do not initialize gRandom in TROOT but in TRandom3.
With this change, there are no more dependencies of base on the math library.

Revision 17818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 10:15:39 2007 UTC (7 years, 11 months ago) by rdm
Original Path: trunk/math/src/TRandom3.cxx
File length: 7754 byte(s)
Diff to previous 17724
correct cvs ident line (base -> math).

Revision 17724 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:17:24 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7773 byte(s)
Diff to previous 17297
In the Streamer functions replace teh lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

Revision 17297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 12 09:27:32 2007 UTC (8 years ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7765 byte(s)
Diff to previous 15457
Remove dependency on "TMath.h"

Revision 15457 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 16 13:05:33 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7784 byte(s)
Diff to previous 15438
Fix coding convention violation

Revision 15438 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 09:14:16 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7783 byte(s)
Diff to previous 15095
From Lorenzo:
Fixes as suggested in http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html
to a  known problem in the seeding procedure when a value with many zero in the bit pattern is used (like 2**28).
It is same problem with the 69069 multiplier, which was affecting before TRandom.

Revision 15095 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 09:37:04 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7463 byte(s)
Diff to previous 15037
Exclude 0 as a return value from Trandom, TRandom1 and TRandom2

Revision 15037 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 14 08:19:30 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7463 byte(s)
Diff to previous 14910
Fix coding conventions violations

Revision 14910 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 4 13:01:46 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 7462 byte(s)
Diff to previous 14336
Implement native version of TRandom3::RandomArray (Mersenne Twister).
This new version is about 50% faster than the previous vesrion.
With this change TRandom3::RndmArray is slightly faster than TRandom::RndmArray.

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/math/src/TRandom3.cxx
File length: 6278 byte(s)
Diff to previous 13987
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 3 21:55:39 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/math/src/TRandom3.cxx
File length: 6276 byte(s)
Diff to previous 12088
Update of spacing and documentation to match the coding rule

Revision 12088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 10:45:42 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 6289 byte(s)
Diff to previous 10620
Fix a problem in TRandom3::SetSeed when called with a null argument.
in this case the random numbers from 2 to 624 could be identical
between consecutive sessions.

Revision 10620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 24 17:49:08 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 6251 byte(s)
Diff to previous 5989
Extend functionality of TRandom3::SetSeed(UInt_t seed)
// if seed is 0 (default value) a TUUID is generated and used to fill
// the first 8 integers of the seed array.
// In this case the seed is guaranteed to be unique in space and time.

Revision 5989 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 26 21:03:16 2003 UTC (12 years ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 5732 byte(s)
Diff to previous 5605
In TRandom add new function:
   virtual  void     RndmArray(Int_t n, Float_t *array);

In TRandom2 and TRandom3, add the functions:
   virtual  void     RndmArray(Int_t n, Float_t *array);
   virtual  void     RndmArray(Int_t n, Double_t *array);

Revision 5605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 17 17:04:36 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 5210 byte(s)
Diff to previous 1006
Modify the Rndm function in the generator classes such that they never
return 0.
Remove the test on 0 from several functions in TRandom.

Revision 1006 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 22 08:35:44 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 5412 byte(s)
Diff to previous 925
Use double precision in return types and all arguments
of the random number generator classes. The modified prototypes are:
   virtual  Int_t    Binomial(Int_t ntot, Double_t prob);
   virtual  Double_t Gaus(Double_t mean=0, Double_t sigma=1);
   virtual  Double_t Landau(Double_t mean=0, Double_t sigma=1);
   virtual  Int_t    Poisson(Double_t mean);
   virtual  void     Rannor(Float_t &a, Float_t &b);
   virtual  void     Rannor(Double_t &a, Double_t &b);
   virtual  Double_t Rndm(Int_t i=0);
   virtual  Double_t Uniform(Double_t x1=1);

 Note that in case of Rannor, two functions are provided, one with
float and one with double for back compatibility.

Revision 925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 16:39:33 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/math/src/TRandom3.cxx
File length: 5414 byte(s)
Diff to previous 3
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/math/src/TRandom3.cxx
File length: 4629 byte(s)
Copied from: branches/unlabeled-1.1.1/math/src/TRandom3.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/unlabeled-1.1.1/math/src/TRandom3.cxx
File length: 4629 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9