Changeset 25439 for trunk/psLib/src/fits/psFitsScale.c
- Timestamp:
- Sep 18, 2009, 9:20:23 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsScale.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsScale.c
r24901 r25439 319 319 value = (value - zero) * scale; \ 320 320 if (options->fuzz) { \ 321 /* Add random factor [ 0,1): adds a variance of 1/12, */ \321 /* Add random factor [-0.5,0.5): adds a variance of 1/12, */ \ 322 322 /* but preserves the expectation value */ \ 323 value += psRandomUniform(rng) ; \323 value += psRandomUniform(rng) - 0.5; \ 324 324 } \ 325 325 /* Check for underflow and overflow; set either to max */ \
Note:
See TracChangeset
for help on using the changeset viewer.
