cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
create_data_table.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
22#include <utility>
23#include <vector>
24
25#include <plotly_plotter/data_table.h>
26
30
31namespace stat_bench {
32namespace plots {
33
41[[nodiscard]] auto create_data_table_with_mean_time(
42 const std::vector<measurer::Measurement>& measurements,
43 const std::vector<param::ParameterName>& parameter_names)
44 -> plotly_plotter::data_table;
45
55 const std::vector<measurer::Measurement>& measurements,
56 const std::vector<param::ParameterName>& parameter_names,
57 const CustomOutputName& output_name)
58 -> std::pair<plotly_plotter::data_table, bool>;
59
67[[nodiscard]] auto create_data_table_with_all_time(
68 const std::vector<measurer::Measurement>& measurements,
69 const std::vector<param::ParameterName>& parameter_names)
70 -> plotly_plotter::data_table;
71
78[[nodiscard]] auto create_data_table_for_cdf_plot(
79 const std::vector<measurer::Measurement>& measurements)
80 -> plotly_plotter::data_table;
81
82} // namespace plots
83} // namespace stat_bench
Definition of CustomOutputName class.
Definition of Measurement class.
Namespace of plotting.
Definition box_plot.h:28
auto create_data_table_with_mean_time(const std::vector< measurer::Measurement > &measurements, const std::vector< param::ParameterName > &parameter_names) -> plotly_plotter::data_table
Create a data table with the mean of processing time.
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.
auto create_data_table_with_custom_output(const std::vector< measurer::Measurement > &measurements, const std::vector< param::ParameterName > &parameter_names, const CustomOutputName &output_name) -> std::pair< plotly_plotter::data_table, bool >
Create a data table with a custom output.
auto create_data_table_with_all_time(const std::vector< measurer::Measurement > &measurements, const std::vector< param::ParameterName > &parameter_names) -> plotly_plotter::data_table
Create a data table with all samples of processing time.
Namespace of stat_bench source codes.
Definition of ParameterName class.