- Timestamp:
- Aug 20, 2014, 1:06:16 PM (11 years ago)
- Children:
- 1cde4e8
- Parents:
- 1ae9aa
- git-author:
- Frederik Heber <heber@…> (06/30/14 09:35:42)
- git-committer:
- Frederik Heber <heber@…> (08/20/14 13:06:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
r1ae9aa r23c605 89 89 //!> precalculated value for root of 3 90 90 const double SQRT_3; 91 //!> threshold for L1 error below which matching is immediately acceptable 92 static const double L1THRESHOLD; 93 //!> threshold for L2 error below which matching is acceptable 94 static const double L2THRESHOLD; 91 95 92 96 //!> typedef for a full rotation specification consisting of axis and angle. … … 103 107 //!> typedef for a Vector of positions with weights 104 108 typedef std::vector< std::pair<Vector, int> > WeightedVectorArray_t; 109 //!> typedef for a vector of degrees (or integral weights) 110 typedef std::vector<unsigned int> WeightsArray_t; 105 111 106 112 //!> amplitude up to which deviations in checks of rotations are tolerated … … 112 118 113 119 static std::pair<double, double> calculateErrorOfMatching( 114 const std::vector<Vector>&_old,115 const std::vector<Vector>&_new,116 const Index List_t &_Matching);120 const VectorArray_t &_old, 121 const VectorArray_t &_new, 122 const IndexTupleList_t &_Matching); 117 123 118 124 static Polygon_t removeMatchingPoints( … … 124 130 bool foundflag; 125 131 double bestL2; 126 Index List_t bestmatching;132 IndexTupleList_t bestmatching; 127 133 VectorArray_t oldpoints; 128 134 VectorArray_t newpoints; 135 WeightsArray_t weights; 129 136 }; 130 137 131 138 static void recurseMatchings( 132 139 MatchingControlStructure &_MCS, 133 Index List_t &_matching,140 IndexTupleList_t &_matching, 134 141 IndexList_t _indices, 135 unsigned int _matchingsize); 142 WeightsArray_t &_remainingweights, 143 WeightsArray_t::iterator _remainiter, 144 const unsigned int _matchingsize 145 ); 136 146 137 147 static IndexList_t findBestMatching(
Note:
See TracChangeset
for help on using the changeset viewer.
