| 8 | using namespace rcsc; |
| 9 | |
| 10 | HighLevelFeatureExtractor::HighLevelFeatureExtractor(int num_teammates, |
| 11 | int num_opponents, |
| 12 | bool playing_offense) : |
| 13 | FeatureExtractor(), |
| 14 | numTeammates(num_teammates), |
| 15 | numOpponents(num_opponents), |
| 16 | playingOffense(playing_offense) |
| 17 | { |
| 18 | assert(numTeammates >= 0); |
| 19 | assert(numOpponents >= 0); |
| 20 | numFeatures = num_basic_features + features_per_teammate * numTeammates; |
| 21 | if (numOpponents > 0) { |
| 22 | // One extra basic feature and one feature per teammate |
| 23 | numFeatures += 1 + numTeammates; |
| 24 | } |
| 25 | feature_vec.resize(numFeatures); |
| 26 | } |
| 27 | |
| 28 | HighLevelFeatureExtractor::~HighLevelFeatureExtractor() {} |
| 29 |
nothing calls this directly
no outgoing calls
no test coverage detected