23 #ifndef GAP_AND_VALLEY_H
24 #define GAP_AND_VALLEY_H
28 extern int getIndex(
int circularIdx,
int max );
29 extern int sign(
double num );
30 extern int getSectorsBetween(
int iS1,
int iS2,
int iSMax );
31 extern int getSectorsBetweenDirected(
int iS1,
int iS2,
int iSMax,
int iDirection );
43 Gap(
int iSector,
double dist,
int iDir );
47 void Update(
int iNewSector,
double newDist );
48 void Update(
int iNewSector,
double newDist,
int iNewDir );
62 Valley(
Gap* risingGap,
Gap* otherGap,
int risingToOther );
65 void overwrite(
Gap* risingGap,
Gap* otherGap,
int risingToOther );
67 int getValleyWidth( std::vector<double> fullLP );
69 bool isSectorInValley(
int iSector,
int iSMax );
Definition: gap_and_valley.h:54
Definition: gap_and_valley.h:33
T max(T a, T b)
Return the maximum of a, b.
Definition: utility.h:126