2nd Library
Diff: PRBS.h
- Revision:
- 0:a201a6cd4c0c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PRBS.h Thu Mar 07 07:03:56 2019 +0000 @@ -0,0 +1,31 @@ +class PRBS +{ +public: + + PRBS(int n); + + float operator()() { + return update(); + } + + virtual ~PRBS(); + + void reset(); + float update(); + + void printPRBSind(); + void printPRBSregister(); + +private: + + int ii; + int n; + int Nprbs; + int *Register; + int Nind; + int *ind; + + void getPrbsIndex(int n); + void printLine(); + +};