22#include <fmt/format.h>
23#include <plotly_plotter/figure.h>
24#include <plotly_plotter/figure_builders/line.h>
25#include <plotly_plotter/figure_builders/scatter.h>
26#include <plotly_plotter/write_html.h>
37 return name_for_file_;
42 const std::vector<measurer::Measurement>& measurements,
43 const std::string& file_path) {
47 "Cumulative Distribution Function of {}", measurer_name.
str()));
50 auto figure = plotly_plotter::figure_builders::line(data_table)
56 figure.title(title.str());
57 plotly_plotter::write_html(file_path, figure);
Definition of CdfLinePlot class.
Class of names of groups of benchmarks.
Class of names of measurers.
auto str() const noexcept -> const util::Utf8String &
Get the string of the name.
auto name_for_file() const -> const util::Utf8String &override
Get a name for output files.
void write(const measurer::MeasurerName &measurer_name, const BenchmarkGroupName &group_name, const std::vector< measurer::Measurement > &measurements, const std::string &file_path) override
Write a plot.
Class of UTF-8 encoded string.
Definition of constants for labels in plots.
Declaration of create_data_table function.
Definition of MeasurerName class.
constexpr const char * time_label
Label for processing time in plots.
auto create_data_table_for_cdf_plot(const std::vector< measurer::Measurement > &measurements) -> plotly_plotter::data_table
Create a data table for cumulative distribution functions.
constexpr const char * cumulative_probability_label
Label for cumulative probability in plots.
constexpr const char * case_name_label
Label for case names in plots.
Namespace of utility functions and classes.
Namespace of stat_bench source codes.
Definition of Utf8String class.