- Timestamp:
- May 25, 2016, 7:13:59 AM (9 years ago)
- Children:
- 4b96da
- Parents:
- 7e9402
- git-author:
- Frederik Heber <heber@…> (06/30/14 09:35:42)
- git-committer:
- Frederik Heber <heber@…> (05/25/16 07:13:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SphericalPointDistribution.hpp
r7e9402 r4d611d 80 80 //!> precalculated value for root of 3 81 81 static const double SQRT_3; 82 //!> threshold for L1 error below which matching is immediately acceptable 83 static const double L1THRESHOLD; 84 //!> threshold for L2 error below which matching is acceptable 85 static const double L2THRESHOLD; 82 86 83 87 //!> typedef for a full rotation specification consisting of axis and angle. … … 94 98 //!> typedef for a Vector of positions with weights 95 99 typedef std::vector< std::pair<Vector, int> > WeightedVectorArray_t; 100 //!> typedef for a vector of degrees (or integral weights) 101 typedef std::vector<unsigned int> WeightsArray_t; 96 102 97 103 //!> amplitude up to which deviations in checks of rotations are tolerated … … 103 109 104 110 static std::pair<double, double> calculateErrorOfMatching( 105 const std::vector<Vector>&_old,106 const std::vector<Vector>&_new,107 const Index List_t &_Matching);111 const VectorArray_t &_old, 112 const VectorArray_t &_new, 113 const IndexTupleList_t &_Matching); 108 114 109 115 static Polygon_t removeMatchingPoints( … … 115 121 bool foundflag; 116 122 double bestL2; 117 Index List_t bestmatching;123 IndexTupleList_t bestmatching; 118 124 VectorArray_t oldpoints; 119 125 VectorArray_t newpoints; 126 WeightsArray_t weights; 120 127 }; 121 128 122 129 static void recurseMatchings( 123 130 MatchingControlStructure &_MCS, 124 Index List_t &_matching,131 IndexTupleList_t &_matching, 125 132 IndexList_t _indices, 126 unsigned int _matchingsize); 133 WeightsArray_t &_remainingweights, 134 WeightsArray_t::iterator _remainiter, 135 const unsigned int _matchingsize 136 ); 127 137 128 138 static IndexList_t findBestMatching(
Note:
See TracChangeset
for help on using the changeset viewer.
