... | ... |
@@ -2,7 +2,6 @@ |
2 | 2 |
#define __COGAPS_GAPS_RESULT__ |
3 | 3 |
|
4 | 4 |
#include "data_structures/Matrix.h" |
5 |
- |
|
6 | 5 |
#include <stdint.h> |
7 | 6 |
#include <string> |
8 | 7 |
#include <vector> |
... | ... |
@@ -36,4 +35,4 @@ struct GapsResult |
36 | 35 |
float averageQueueLengthP; |
37 | 36 |
}; |
38 | 37 |
|
39 |
-#endif // __COGAPS_GAPS_RESULT__ |
|
40 | 38 |
\ No newline at end of file |
39 |
+#endif // __COGAPS_GAPS_RESULT__ |
... | ... |
@@ -20,8 +20,10 @@ struct GapsResult |
20 | 20 |
Matrix Psd; |
21 | 21 |
Matrix pumpMatrix; |
22 | 22 |
Matrix meanPatternAssignment; |
23 |
- std::vector<Matrix> snapshotsA; |
|
24 |
- std::vector<Matrix> snapshotsP; |
|
23 |
+ std::vector<Matrix> equilibrationSnapshotsA; |
|
24 |
+ std::vector<Matrix> equilibrationSnapshotsP; |
|
25 |
+ std::vector<Matrix> samplingSnapshotsA; |
|
26 |
+ std::vector<Matrix> samplingSnapshotsP; |
|
25 | 27 |
std::vector<float> chisqHistory; |
26 | 28 |
std::vector<unsigned> atomHistoryA; |
27 | 29 |
std::vector<unsigned> atomHistoryP; |
The argument 'nSnapshots' specifies how many samples of the A and P matrix should be saved. The snapshots are equally spaced out during the sampling phase. This is useful for various post-run analysis techniques but should primarily be used to test ideas, not as part of an official analysis.
... | ... |
@@ -20,6 +20,8 @@ struct GapsResult |
20 | 20 |
Matrix Psd; |
21 | 21 |
Matrix pumpMatrix; |
22 | 22 |
Matrix meanPatternAssignment; |
23 |
+ std::vector<Matrix> snapshotsA; |
|
24 |
+ std::vector<Matrix> snapshotsP; |
|
23 | 25 |
std::vector<float> chisqHistory; |
24 | 26 |
std::vector<unsigned> atomHistoryA; |
25 | 27 |
std::vector<unsigned> atomHistoryP; |
... | ... |
@@ -1,39 +1,34 @@ |
1 | 1 |
#ifndef __COGAPS_GAPS_RESULT__ |
2 | 2 |
#define __COGAPS_GAPS_RESULT__ |
3 | 3 |
|
4 |
-#include "GapsStatistics.h" |
|
5 | 4 |
#include "data_structures/Matrix.h" |
6 | 5 |
|
7 | 6 |
#include <stdint.h> |
8 | 7 |
#include <string> |
8 |
+#include <vector> |
|
9 |
+ |
|
10 |
+class GapsStatistics; |
|
9 | 11 |
|
10 | 12 |
struct GapsResult |
11 | 13 |
{ |
14 |
+ explicit GapsResult(const GapsStatistics &stat); |
|
15 |
+ void writeToFile(const std::string &path); |
|
16 |
+ |
|
12 | 17 |
Matrix Amean; |
13 | 18 |
Matrix Asd; |
14 | 19 |
Matrix Pmean; |
15 | 20 |
Matrix Psd; |
16 | 21 |
Matrix pumpMatrix; |
17 | 22 |
Matrix meanPatternAssignment; |
18 |
- |
|
19 | 23 |
std::vector<float> chisqHistory; |
20 | 24 |
std::vector<unsigned> atomHistoryA; |
21 | 25 |
std::vector<unsigned> atomHistoryP; |
22 |
- |
|
23 | 26 |
uint64_t totalUpdates; |
24 | 27 |
uint32_t seed; |
25 | 28 |
unsigned totalRunningTime; |
26 |
- |
|
27 | 29 |
float meanChiSq; |
28 | 30 |
float averageQueueLengthA; |
29 | 31 |
float averageQueueLengthP; |
30 |
- |
|
31 |
- explicit GapsResult(const GapsStatistics &stat); |
|
32 |
- |
|
33 |
- void writeToFile(const std::string &fullPath); |
|
34 |
- void writeCsv(const std::string &path); |
|
35 |
- void writeTsv(const std::string &path); |
|
36 |
- void writeGct(const std::string &path); |
|
37 | 32 |
}; |
38 | 33 |
|
39 | 34 |
#endif // __COGAPS_GAPS_RESULT__ |
40 | 35 |
\ No newline at end of file |
... | ... |
@@ -16,14 +16,15 @@ struct GapsResult |
16 | 16 |
Matrix pumpMatrix; |
17 | 17 |
Matrix meanPatternAssignment; |
18 | 18 |
|
19 |
- float meanChiSq; |
|
20 |
- uint32_t seed; |
|
21 |
- unsigned totalRunningTime; |
|
22 |
- |
|
23 | 19 |
std::vector<float> chisqHistory; |
24 | 20 |
std::vector<unsigned> atomHistoryA; |
25 | 21 |
std::vector<unsigned> atomHistoryP; |
26 | 22 |
|
23 |
+ uint64_t totalUpdates; |
|
24 |
+ uint32_t seed; |
|
25 |
+ unsigned totalRunningTime; |
|
26 |
+ |
|
27 |
+ float meanChiSq; |
|
27 | 28 |
float averageQueueLengthA; |
28 | 29 |
float averageQueueLengthP; |
29 | 30 |
|
... | ... |
@@ -23,6 +23,9 @@ struct GapsResult |
23 | 23 |
std::vector<unsigned> atomHistoryA; |
24 | 24 |
std::vector<unsigned> atomHistoryP; |
25 | 25 |
|
26 |
+ float averageQueueLengthA; |
|
27 |
+ float averageQueueLengthP; |
|
28 |
+ |
|
26 | 29 |
explicit GapsResult(const GapsStatistics &stat); |
27 | 30 |
|
28 | 31 |
void writeToFile(const std::string &fullPath); |
... | ... |
@@ -17,6 +17,10 @@ struct GapsResult |
17 | 17 |
float meanChiSq; |
18 | 18 |
uint32_t seed; |
19 | 19 |
|
20 |
+ std::vector<float> chisqHistory; |
|
21 |
+ std::vector<unsigned> atomHistoryA; |
|
22 |
+ std::vector<unsigned> atomHistoryP; |
|
23 |
+ |
|
20 | 24 |
explicit GapsResult(const GapsStatistics &stat); |
21 | 25 |
|
22 | 26 |
void writeToFile(const std::string &fullPath); |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+#ifndef __COGAPS_GAPS_RESULT__ |
|
2 |
+#define __COGAPS_GAPS_RESULT__ |
|
3 |
+ |
|
4 |
+#include "GapsStatistics.h" |
|
5 |
+#include "data_structures/Matrix.h" |
|
6 |
+ |
|
7 |
+#include <stdint.h> |
|
8 |
+#include <string> |
|
9 |
+ |
|
10 |
+struct GapsResult |
|
11 |
+{ |
|
12 |
+ ColMatrix Amean; |
|
13 |
+ ColMatrix Asd; |
|
14 |
+ ColMatrix Pmean; |
|
15 |
+ ColMatrix Psd; |
|
16 |
+ |
|
17 |
+ float meanChiSq; |
|
18 |
+ uint32_t seed; |
|
19 |
+ |
|
20 |
+ GapsResult(const GapsStatistics &stat); |
|
21 |
+ |
|
22 |
+ void writeToFile(const std::string &fullPath); |
|
23 |
+ void writeCsv(const std::string &path); |
|
24 |
+ void writeTsv(const std::string &path); |
|
25 |
+ void writeGct(const std::string &path); |
|
26 |
+}; |
|
27 |
+ |
|
28 |
+#endif // __COGAPS_GAPS_RESULT__ |
|
0 | 29 |
\ No newline at end of file |