14 const std::string UnconstrainingMethod::_labels[
LAST_VALUE] =
15 {
"Expectation-Maximisation" };
18 const char UnconstrainingMethod::
23 UnconstrainingMethod::UnconstrainingMethod()
29 UnconstrainingMethod::
31 : _method (iUnconstrainingMethod._method) {
35 UnconstrainingMethod::
37 : _method (iUnconstrainingMethod) {
41 UnconstrainingMethod::UnconstrainingMethod (
const char iMethod) {
43 case 'E': _method =
EM;
break;
49 std::ostringstream oMessage;
50 oMessage <<
"The unconstraining method '" << iMethod
51 <<
"' is not known. Known unconstraining methods: " << lLabels;
59 return _labels[iMethod];
64 return _methodLabels[iMethod];
70 std::ostringstream oStr;
71 oStr << _methodLabels[iMethod];
77 std::ostringstream ostr;
78 for (
unsigned short idx = 0; idx !=
LAST_VALUE; ++idx) {
82 ostr << _labels[idx] <<
" (" << _methodLabels[idx] <<
")";
94 std::ostringstream oStr;
95 oStr << _methodLabels[_method];
101 std::ostringstream ostr;
102 ostr << _labels[_method];
109 return (_method == iMethod);
static const std::string & getLabel(const EN_UnconstrainingMethod &)
static std::string describeLabels()
std::string getMethodAsString() const
Handle on the StdAir library context.
static std::string getMethodLabelAsString(const EN_UnconstrainingMethod &)
EN_UnconstrainingMethod getMethod() const
bool operator==(const EN_UnconstrainingMethod &) const
static char getMethodLabel(const EN_UnconstrainingMethod &)
const std::string describe() const