1 |
+ |
#ifndef lint |
2 |
+ |
static const char RCSid[] = "$Id$"; |
3 |
+ |
#endif |
4 |
+ |
|
5 |
|
/* |
6 |
< |
================================================================== |
6 |
> |
====================================================================== |
7 |
|
Random number generators for photon distribution |
8 |
|
|
9 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
10 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
11 |
< |
Lucerne University of Applied Sciences & Arts |
12 |
< |
================================================================== |
11 |
> |
(c) Lucerne University of Applied Sciences and Arts, |
12 |
> |
supported by the Swiss National Science Foundation (SNSF, #147053) |
13 |
> |
====================================================================== |
14 |
|
|
15 |
|
$Id$ |
16 |
|
*/ |
18 |
|
|
19 |
|
|
20 |
|
/* |
21 |
< |
Separate RNG states are used for the following variates during photon |
22 |
< |
distribution: |
21 |
> |
Separate RNG states are used for the following sampling domains during |
22 |
> |
photon distribution: |
23 |
|
|
24 |
|
- source partition |
25 |
|
- emission direction |
28 |
|
- scattering direction |
29 |
|
- russian roulette. |
30 |
|
|
31 |
< |
Each photon map also has a local state randState used for distribRatio |
32 |
< |
during distribution and for bias compensation during gathering. |
31 |
> |
In addition, each photon map also has a local state randState used for |
32 |
> |
distribRatio during distribution and for bias compensation during |
33 |
> |
gathering. |
34 |
|
|
35 |
< |
The random seed randSeed can added to each initial state with pmapSeed() |
36 |
< |
so the RNGs can be externally seeded if necessary. |
35 |
> |
The random seed randSeed can be added to each initial state with |
36 |
> |
pmapSeed() so the RNGs can be externally seeded if necessary. |
37 |
|
*/ |
38 |
|
|
39 |
|
unsigned short partState [3] = {47717, 5519, 21521}, |