00001
00002
00003 #ifndef _STATISTICAL_COMPARISON_H_
00004 #define _STATISTICAL_COMPARISON_H_
00005
00006 #include <vector>
00007 #include <geom/Declarations.hpp>
00008
00009 namespace jafar {
00010 namespace dseg {
00011 class SegmentsSet;
00018 class StatisticalComparison {
00019 public:
00020 StatisticalComparison( const std::vector<jafar::geom::Segment2D>& ref,
00021 const std::vector<jafar::geom::Segment2D>& comp );
00022 ~StatisticalComparison();
00023 double repetability() const;
00027 int unmatched() const;
00031 int splited() const;
00035 double distanceMean() const;
00039 double distanceStdDev() const;
00043 std::vector< jafar::geom::Segment2D > umatchedSegments() const;
00047 std::vector< jafar::geom::Segment2D > splitedSegments() const;
00051 int totalRefSegments() const;
00055 int totalCompSegments() const;
00056 private:
00057 int m_totalRefSegments;
00058 int m_totalCompSegments;
00059 int m_repeatedSegmentsCount;
00060 std::vector< double > m_distances;
00061 std::vector< jafar::geom::Segment2D > m_unmachted;
00062 std::vector< jafar::geom::Segment2D > m_splited;
00063 };
00064 }
00065 }
00066
00067 #endif