MCPcopy Create free account
hub / github.com/LARG/HFO / HighLevelFeatureExtractor

Method HighLevelFeatureExtractor

src/highlevel_feature_extractor.cpp:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace rcsc;
9
10HighLevelFeatureExtractor::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
28HighLevelFeatureExtractor::~HighLevelFeatureExtractor() {}
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected