forked from vvislavi/GFW_Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGFWPowerArray.h
More file actions
22 lines (22 loc) · 742 Bytes
/
Copy pathGFWPowerArray.h
File metadata and controls
22 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef GFWPOWERARRAY__C
#define GFWPOWERARRAY__C
#include <vector>
#include <cmath>
#include <string>
using namespace std;
using std::vector;
using std::string;
typedef vector<int> HarSet;
class GFWPowerArray {
public:
static HarSet GetPowerArray(vector<HarSet> inHarmonics);
static void PowerArrayTest();
private:
static int getHighestHarmonic(const HarSet &inhar);
static HarSet TrimVec(HarSet hars, int ind);
static HarSet AddConstant(HarSet hars, int offset);
static void FlushVectorToMaster(HarSet &masterVector, HarSet &comVec, const int &MaxPower);
static void RecursiveFunction(HarSet &masterVector, HarSet hars, int offset, const int &MaxPower);
static void PrintVector(const HarSet &singleSet);
};
#endif