- Timestamp:
- Jun 7, 2014, 5:37:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/psLib/src/fits/psFitsScale.c
r35980 r36827 1022 1022 /* Add random factor [-0.5,0.5): adds a variance of 1/12, */ \ 1023 1023 /* but preserves the expectation value */ \ 1024 value += psRandomUniform(rng) - 0.5; \1024 value += psRandomUniform(rng) ; \ 1025 1025 } \ 1026 1026 /* Check for underflow and overflow; set either to max */ \ 1027 (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : value); \1027 (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : floor(value)); \ 1028 1028 } \ 1029 1029 } \
Note:
See TracChangeset
for help on using the changeset viewer.
