- Timestamp:
- Feb 11, 2018, 11:31:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroidmining/AsteroidMinable.cc
r11736 r11738 279 279 int z = 0; 280 280 float dProbA = 1.0/(a*a + 3.0*a + 2.0); // one 'probability unit' for discrete ramp function. Gauss stuff. 281 for(z = 0; z< =a; ++z){probDensity[z] = (z+1)*dProbA; } // rising part281 for(z = 0; z<a; ++z){probDensity[z] = (z+1)*dProbA; } // rising part 282 282 283 283 float dProbB = 1.0/(b*b +3.0*b + 2.0); 284 for(z = 0; z<b; ++z){probDensity[c- z] = (z+1)*dProbB;} // falling part284 for(z = 0; z<b; ++z){probDensity[c-1-z] = (z+1)*dProbB;} // falling part 285 285 286 286 // // Just for testing:
Note: See TracChangeset
for help on using the changeset viewer.