-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove field "order_" from class OrdinalFeatureVector.
- Loading branch information
1 parent
03c75fb
commit bd6e435
Showing
2 changed files
with
1 addition
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 1 addition & 21 deletions
22
cpp/subprojects/common/src/mlrl/common/input/feature_vector_ordinal.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,4 @@ | ||
#include "mlrl/common/input/feature_vector_ordinal.hpp" | ||
|
||
OrdinalFeatureVector::OrdinalFeatureVector(uint32 numValues, uint32 numExamples, int32 majorityValue) | ||
: NominalFeatureVector(numValues, numExamples, majorityValue), order_(new uint32[numValues]) {} | ||
|
||
OrdinalFeatureVector::~OrdinalFeatureVector() { | ||
delete[] order_; | ||
} | ||
|
||
OrdinalFeatureVector::index_iterator OrdinalFeatureVector::order_begin(uint32 index) { | ||
return order_; | ||
} | ||
|
||
OrdinalFeatureVector::index_iterator OrdinalFeatureVector::order_end(uint32 index) { | ||
return &order_[this->getNumElements()]; | ||
} | ||
|
||
OrdinalFeatureVector::index_const_iterator OrdinalFeatureVector::order_cbegin(uint32 index) const { | ||
return order_; | ||
} | ||
|
||
OrdinalFeatureVector::index_const_iterator OrdinalFeatureVector::order_cend(uint32 index) const { | ||
return &order_[this->getNumElements()]; | ||
} | ||
: NominalFeatureVector(numValues, numExamples, majorityValue) {} |