-
Notifications
You must be signed in to change notification settings - Fork 0
/
weakclassifier.cpp
49 lines (40 loc) · 946 Bytes
/
weakclassifier.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "weakclassifier.h"
WeakClassifier::WeakClassifier(QObject *parent) :
QObject(parent)
{
}
WeakClassifier::WeakClassifier(const WeakClassifier &other)
{
m_internalNodes = other.internalNodes();
m_leafValues = other.leafValues();
}
WeakClassifier& WeakClassifier::operator =(const WeakClassifier &other)
{
if(this == &other)
return *this;
m_internalNodes = other.internalNodes();
m_leafValues = other.leafValues();
return *this;
}
QString WeakClassifier::internalNodes() const
{
return m_internalNodes;
}
void WeakClassifier::setInternalNodes(const QString internalNodes)
{
if (m_internalNodes != internalNodes)
{
m_internalNodes = internalNodes;
}
}
QString WeakClassifier::leafValues() const
{
return m_leafValues;
}
void WeakClassifier::setLeafValues(const QString leafValues)
{
if (m_leafValues != leafValues)
{
m_leafValues = leafValues;
}
}