OpenIndy-Core  0.2.0.43
statistic.h
Go to the documentation of this file.
1 #ifndef STATISTIC_H
2 #define STATISTIC_H
3 
4 #include <QList>
5 
6 #include "oivec.h"
7 #include "oimat.h"
8 #include "types.h"
9 
10 namespace oi{
11 
12 using namespace math;
13 
18 public:
19  Residual() : elementId(-1){}
20 
21  int elementId; //id of the element this residual belongs to
22  QMap<QString, double> corrections; //the correction values (key: name)
23  DimensionType dimension; //dimension of the correction values
24 };
25 
30 {
31 
32 public:
33  Statistic();
34  Statistic(const Statistic &copy);
35 
36  Statistic& operator=(const Statistic &other);
37 
38  //###################################
39  //get valid state and reset statistic
40  //###################################
41 
42  const bool &getIsValid() const;
43  void setIsValid(const bool &isValid);
44 
45  void reset();
46 
47  //#################################
48  //get or set statistical parameters
49  //#################################
50 
51  const double &getS0APriori() const;
52  void setS0APriori(const double &s0);
53 
54  const double &getS0APosteriori() const;
55  void setS0APosteriori(const double &s0);
56 
57  const double &getStdev() const;
58  void setStdev(const double &stdev);
59 
60  const OiMat &getP() const;
61  void setP(const OiMat &p);
62 
63  const OiMat &getQxx() const;
64  void setQxx(const OiMat &qxx);
65 
66  const OiVec &getV() const;
67  void setV(const OiVec &v);
68 
69  const QList<Residual> &getDisplayResiduals() const;
70  Residual getDisplayResidual(const int &elementId) const;
71  void addDisplayResidual(const Residual &residual);
72 
73 private:
74  bool isValid;
75 
76  //######################
77  //statistical parameters
78  //######################
79 
80  double s0_apriori;
81  double s0_aposteriori;
82 
83  double stdev; //standard deviation of vertical distances from geometry surface
84 
85  OiMat p;
86  OiMat qxx;
87 
88  OiVec v; //vertical distances from geometry surface
89  QList<Residual> displayResidualsList; //list of display residuals
90  QMap<int, Residual> displayResidualsMap; //map of display residuals (key: element id that the residual belongs to)
91 
92 };
93 
94 }
95 
96 #endif // STATISTIC_H
The OiVec class.
Definition: oivec.h:22
DimensionType dimension
Definition: statistic.h:23
The Residual class.
Definition: statistic.h:17
Definition: coordinatesystem.h:15
The OiMat class.
Definition: oimat.h:58
The Statistic class.
Definition: statistic.h:29
int elementId
Definition: statistic.h:21
QMap< QString, double > corrections
Definition: statistic.h:22
Residual()
Definition: statistic.h:19
DimensionType
Definition: types.h:377
#define OI_CORE_EXPORT
Definition: types.h:11