Changeset 25262
- Timestamp:
- Sep 2, 2009, 11:48:22 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/psphot/src/psphotFake.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/psphot/src/psphotFake.c
r25261 r25262 82 82 83 83 psRandom *rng = psRandomAlloc(PS_RANDOM_TAUS); // Random number generator 84 for (int i = 0, index = 0; i < =numBins; i++) {84 for (int i = 0, index = 0; i < numBins; i++) { 85 85 float mag = refMag + magOffsets->data.F32[i]; // Instrumental magnitude of sources 86 86 87 for (int j = 0; j < =numSources; j++, index++) {87 for (int j = 0; j < numSources; j++, index++) { 88 88 xAll->data.F32[index] = psRandomUniform(rng) * numCols; 89 89 yAll->data.F32[index] = psRandomUniform(rng) * numRows;
Note:
See TracChangeset
for help on using the changeset viewer.
