Changeset 18011 for trunk/ppSim/src/ppSimAddNoise.c
- Timestamp:
- Jun 8, 2008, 4:03:31 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimAddNoise.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimAddNoise.c
r14657 r18011 32 32 // (generate a static array with the cumulative distribution, use the 33 33 // random number to select a bin from the histogram) 34 signal->data.F32[y][x] += sqrtf(variance->data.F32[y][x]) * p sRandomGaussian(rng);34 signal->data.F32[y][x] += sqrtf(variance->data.F32[y][x]) * ppSimRandomGaussianNorm(rng); 35 35 signal->data.F32[y][x] /= gain; // Converting to ADU 36 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
