|
@@ -39,14 +39,30 @@ ClassificationResult::ClassificationResult ( int _classno, double _score, int ma
|
|
|
uncertainty = 0.0;
|
|
|
}
|
|
|
|
|
|
-ClassificationResult::ClassificationResult ( int _classno, const FullVector & _scores )
|
|
|
+ClassificationResult::ClassificationResult ( int _classno,
|
|
|
+ const FullVector & _scores
|
|
|
+ )
|
|
|
{
|
|
|
- rejection_status = REJECTION_NONE;
|
|
|
- classno = _classno;
|
|
|
- scores = _scores;
|
|
|
- classname = "unknown";
|
|
|
- classno_groundtruth = -1;
|
|
|
- uncertainty = 0.0;
|
|
|
+ this->rejection_status = REJECTION_NONE;
|
|
|
+ this->classno = _classno;
|
|
|
+ this->scores = _scores;
|
|
|
+ this->classname = "unknown";
|
|
|
+ this->classno_groundtruth = -1;
|
|
|
+ this->uncertainty = 0.0;
|
|
|
+}
|
|
|
+
|
|
|
+ClassificationResult::ClassificationResult ( int _classno,
|
|
|
+ const SparseVector & _scores
|
|
|
+ )
|
|
|
+{
|
|
|
+ throw("No conversion from SparseVector to FullVector available. Aborting!");
|
|
|
+
|
|
|
+ this->rejection_status = REJECTION_NONE;
|
|
|
+ this->classno = _classno;
|
|
|
+
|
|
|
+ this->classname = "unknown";
|
|
|
+ this->classno_groundtruth = -1;
|
|
|
+ this->uncertainty = 0.0;
|
|
|
}
|
|
|
|
|
|
ClassificationResult::~ClassificationResult()
|