Metric vector. More...
#include <test.h>
Public Member Functions | |
| MetricVec (const std::string_view file_path, const std::string_view test_path, const std::string_view term_name) | |
| Read and parse the metric vector. More... | |
| bool | in (const Metric metric) const |
| Whether a metric is specified. More... | |
Public Attributes | |
| std::set< Metric > | metric_set |
| set of interested metrics More... | |
| double | podf |
| threshold for podf More... | |
| std::vector< double > | quantiles |
| quantiles of distribution More... | |
Metric vector.
Holding metrics that are of interest. Manipulated by TestBase.
| OmniSketch::Test::MetricVec::MetricVec | ( | const std::string_view | file_path, |
| const std::string_view | test_path, | ||
| const std::string_view | term_name | ||
| ) |
Read and parse the metric vector.
| file_path | Path to the config file |
| test_path | Path to the node containing testing routines in the file (concatenated with '.', see example below) |
| term_name | Name of the testing routine in TOML file |
you have to add to the same node a line
to specify the error threshold in order for MetricVec to read. Likewise, with Metric::DIST you have to add a line
to specify the ticks.
Suppose we have the following toml file:
The proper way of creating an MetricVec is ("toml.toml", "MySketch.test", "insert").
|
inline |
Whether a metric is specified.
| std::set<Metric> OmniSketch::Test::MetricVec::metric_set |
set of interested metrics
| double OmniSketch::Test::MetricVec::podf |
threshold for podf
| std::vector<double> OmniSketch::Test::MetricVec::quantiles |
quantiles of distribution