| 333 | } |
| 334 | |
| 335 | std::size_t sample_result::count(std::string_view bitStr, |
| 336 | const std::string_view registerName) const { |
| 337 | const auto &counts = retrieve_result(registerName.data()).counts; |
| 338 | auto it = counts.find(bitStr.data()); |
| 339 | if (it == counts.cend()) |
| 340 | return 0; |
| 341 | else |
| 342 | return it->second; |
| 343 | } |
| 344 | |
| 345 | std::string |
| 346 | sample_result::most_probable(const std::string_view registerName) const { |
no test coverage detected