rng/randomness_tests/binary_matrix.cpp
2025-07-07 10:27:51 +01:00

22 lines
515 B
C++

#include "./binary_matrix.h"
#include "./rngtest.h"
namespace splat {
binary_matrix_test::binary_matrix_test(std::vector<std::bitset<32>> &testData) : RNGTEST(testData){
testPValue = runTest(data);
testPassed = testPValue > 0.01;
}
std::string binary_matrix_test::getName() {
return "Binary Matrix Rank Test";
}
// We will use matrices of size 32x32 as recommended
double binary_matrix_test::runTest(std::vector<std::bitset<32>> &data) {
int num_matrices = data.size() / 32;
}
}