36 |
|
|
37 |
|
#include <string> |
38 |
|
|
39 |
+ |
#include "math/SquareMatrix3.hpp" |
40 |
|
namespace oopse { |
41 |
|
|
42 |
|
/** |
68 |
|
ENDINDEX //internal use |
69 |
|
}; |
70 |
|
|
71 |
+ |
Stats(); |
72 |
|
const double& operator [](StatsIndex index) const { |
73 |
|
return data_[static_cast<int>(index)]; |
74 |
|
} |
84 |
|
static std::string getUnits(StatsIndex index) { |
85 |
|
return units_[static_cast<int>(index)]; |
86 |
|
} |
87 |
+ |
|
88 |
+ |
Mat3x3d getTau() { |
89 |
+ |
return tau_; |
90 |
+ |
} |
91 |
|
|
92 |
< |
private: |
92 |
> |
void setTau(const Mat3x3d& tau) { |
93 |
> |
tau_ = tau; |
94 |
> |
} |
95 |
|
|
96 |
+ |
private: |
97 |
+ |
static void init(); |
98 |
+ |
static bool isInit_; |
99 |
|
double data_[ENDINDEX - BEGININDEX]; |
100 |
|
static std::string title_[ENDINDEX - BEGININDEX]; |
101 |
|
static std::string units_[ENDINDEX - BEGININDEX]; |
102 |
+ |
Mat3x3d tau_; |
103 |
|
}; |
104 |
|
|
105 |
|
} //end namespace oopse |