- Timestamp:
- Jun 21, 2017, 8:01:27 AM (8 years ago)
- Branches:
- IndependentFragmentGrids_Sole_NN_Calculation
- Parents:
- 3fb9ab
- git-author:
- Frederik Heber <heber@…> (08/19/16 05:27:39)
- git-committer:
- Frederik Heber <frederik.heber@…> (06/21/17 08:01:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FragmentationAction/AnalyseFragmentationResultsAction.cpp
r3fb9ab ra8961d 392 392 value.potential_distribution = 393 393 boost::fusion::at_key<VMGDataFused::both_sampled_potential>(potentialiter->second.second); // contributions 394 // // and re-average to zero (integral is times volume_element which we don't need here) 395 // const double sum = 396 // std::accumulate( 397 // value.potential_distribution.sampled_grid.begin(), 398 // value.potential_distribution.sampled_grid.end(), 399 // 0.); 400 // const double offset = sum/(double)value.potential_distribution.sampled_grid.size(); 401 // for (SamplingGrid::sampledvalues_t::iterator iter = value.potential_distribution.sampled_grid.begin(); 402 // iter != value.potential_distribution.sampled_grid.end(); 403 // ++iter) 404 // *iter -= offset; 394 value.potential_distribution += 395 boost::fusion::at_key<VMGDataFused::sampled_potential>(potentialiter->second.second); // contributions 396 // and re-average to zero (integral is times volume_element which we don't need here) 397 const double sum = 398 std::accumulate( 399 value.potential_distribution.sampled_grid.begin(), 400 value.potential_distribution.sampled_grid.end(), 401 0.); 402 const double offset = sum/(double)value.potential_distribution.sampled_grid.size(); 403 for (SamplingGrid::sampledvalues_t::iterator iter = value.potential_distribution.sampled_grid.begin(); 404 iter != value.potential_distribution.sampled_grid.end(); 405 ++iter) 406 *iter -= offset; 405 407 #else 406 408 ELOG(2, "Long-range information in homology desired but long-range analysis capability not compiled in.");
Note:
See TracChangeset
for help on using the changeset viewer.