|
linbox
|
The raw data to plot. More...
#include <benchmark.h>
Public Member Functions | |
| PlotData (index_t nb_pts, index_t nb_srs=1) | |
| Inits a plot with series of data. More... | |
| ~PlotData () | |
| destructor. | |
| PlotData (const PlotData< NAM > &PD) | |
| copy constructor. More... | |
| index_t | getSeriesDim () |
| get the number of series. More... | |
| index_t | getPointsDim () |
| get the common number of points in each serie. More... | |
| void | setSerieName (index_t i, std::string nom) |
| Sets the name of a serie. More... | |
| void | setAbsciName (index_t j, NAM nom) |
| Sets the name of a point. More... | |
| std::string | getSerieName (index_t i) |
| gets the name of a serie. More... | |
| NAM | getAbsciName (index_t j) |
| gets the name of a point. More... | |
| std::vector< std::string > | getSerieNames () |
| gets all the names in the series. More... | |
| std::vector< NAM > | getAbsciNames () |
| gets all the names in the points. More... | |
| void | resizeSeries (index_t &n) |
| modifies the number of series. More... | |
| void | resizePoints (index_t &n) |
| modifies the number of points. More... | |
| void | setEntry (index_t i, index_t j, double val) |
| sets a new entry. More... | |
| double | getEntry (index_t i, index_t j) |
| gets a value for an entry. More... | |
| std::vector< std::vector < float > > & | getTable () |
| gets a reference to the array of data. More... | |
The raw data to plot.
Represents the series of points and the labels for the points (X) axis and the series (Y) axis. The internal representation is a vector of vector, each series of point being a vector of double.
| NAM | the X axis is parametered by NAM (string, int, double...) |
|
inline |
Inits a plot with series of data.
| nb_pts | number of points in each serie. |
| nb_srs | number of series of points. Default is 1. |
|
inline |
get the number of series.
|
inline |
get the common number of points in each serie.
|
inline |
Sets the name of a serie.
| i | index of the serie |
| nom | name of the serie |
|
inline |
Sets the name of a point.
| j | index for the the point |
| nom | name of the point |
|
inline |
gets the name of a serie.
Defaults to "serie.i"
| i | its index. |
|
inline |
gets the name of a point.
| j | its index. |
setAbsciName has to be used beforehands.
|
inline |
gets all the names in the series.
|
inline |
gets all the names in the points.
|
inline |
modifies the number of series.
| n | the new number of series. Some data will be lost if n is smaller than the current size. |
|
inline |
modifies the number of points.
| n | the new number of points in every series. Some data will be lost if n is smaller than the current size. |
|
inline |
sets a new entry.
| i | index of the serie |
| j | index of the point |
| val | value to be inserted. |
|
inline |
gets a value for an entry.
| i | index of the serie |
| j | index of the point |
|
inline |
gets a reference to the array of data.
tableau representing the data.
1.8.6