Log of /trunk/math/mathcore/inc/TRandom.h
Parent Directory
Revision
32526 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 10 14:56:13 2010 UTC (4 years, 10 months ago) by
moneta
File length: 2628 byte(s)
Diff to
previous 27771
- use in TRandom::SetSeed a default argument = 0.
In this way we have the same default argument used in the derived classes ( TRandom2 and TRandom3)
This fixes probelm reported in https://savannah.cern.ch/bugs/?64117
i.e. a different behaviour observed when running interpreted code compared to compiled code.
Revision
14932 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 6 08:25:15 2006 UTC (8 years, 8 months ago) by
brun
Original Path:
trunk/math/inc/TRandom.h
File length: 2652 byte(s)
Diff to
previous 9149
Implement new function TRandom::Circle
void TRandom::Circle(Double_t &x, Double_t &y, Double_t r)
// generates random vectors, uniformly distributed over a circle of given radius.
// Input : r = circle radius
// Output: x,y a random 2-d vector of length r
Revision
9149 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 9 06:46:30 2004 UTC (10 years, 7 months ago) by
brun
Original Path:
trunk/math/inc/TRandom.h
File length: 2589 byte(s)
Diff to
previous 7632
Add new random generator function:
void TRandom::Sphere(Double_t &x, Double_t &y, Double_t &z, Double_t xlong)
// generates random vectors, uniformly distributed over the surface
// of a sphere of given radius.
Revision
5989 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jan 26 21:03:16 2003 UTC (11 years, 11 months ago) by
brun
Original Path:
trunk/math/inc/TRandom.h
File length: 2436 byte(s)
Diff to
previous 4472
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
4260 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 28 09:22:36 2002 UTC (12 years, 10 months ago) by
brun
Original Path:
trunk/math/inc/TRandom.h
File length: 2333 byte(s)
Diff to
previous 1006
Add the following new functions:
void TRandom::RndmArray(Int_t n, Double_t *array)
// Return an array of n random numbers uniformly distributed
// between 0 and 1 not included
Double_t TRandom::Uniform(Double_t x1, Double_t x2)
// returns a uniform deviate on the interval ( x1, x2 ].
void TRandom::ReadRandom(const char *filename)
// Reads saved random generator status from filename
void TRandom::WriteRandom(const char *filename)
// Writes random generator status to filename
Note that since TRandom is teh base class for all random number classes,
the new function may be used with TRandom, TRandom2 and TRandom3.
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/inc/TRandom.h
File length: 2111 byte(s)
Diff to
previous 3
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.
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.