|
linbox
|
The raw data to plot. More...
#include <benchmark.h>
Public Member Functions | |
| const DataSeries & | getSeries (const size_t &i) const |
| Returns the ith series of measurements. | |
| const DataSeries & | selectSeries (const size_t &i) |
| Returns the ith series of measurements. | |
| const DataSeries & | selectSeries (const std::string &name) |
| Returns the series of measurements after its name. | |
| const DataSeries & | getCurrentSeries () const |
| Returns the current series of measurements. | |
| DataSeries & | refSeries (const size_t &i) |
| Returns the ith series of measurements. | |
| DataSeries & | refSeries (const std::string &nom) |
| Returns the ith series of measurements. | |
| DataSeries & | refCurrentSeries () |
| Returns the current series of measurements. | |
| PlotData () | |
| Inits a plot with series of data. | |
| ~PlotData () | |
| destructor. | |
| PlotData (const PlotData &PD) | |
| copy constructor. | |
| void | clear () |
| initialize to empty | |
| void | merge (const PlotData &PD) |
| merges another plot data to the current one. | |
| size_t | size () const |
| get the number of series. | |
| size_t | getCurrentSeriesNumber () const |
| gets the current series number. | |
| void | setSeriesName (const size_t &i, const std::string &nom) |
| Sets the name of a series. | |
| const std::string & | getSeriesName (const size_t &i) const |
| Gets the name of a series. | |
| const std::string & | getCurrentSeriesName () const |
| Gets the name of the current series. | |
| void | setCurrentSeriesName (const std::string &nom) |
| Sets the name of the current series. | |
| void | initWatch (const size_t &i) |
| Inits the watch on a series. | |
| void | initCurrentSeriesWatch () |
| Inits the watch to current series. | |
| void | newSeries (const std::string &nom="") |
| Creates a new series. | |
| void | finishSeries () |
| Finish a series of measurements. | |
| size_t | getSeriesSize (const size_t &i) const |
| size of a series. | |
| size_t | getCurrentSeriesSize () const |
| size of the current series. | |
| bool | selectNextSeries () |
| goes to the next series of points | |
| void | selectFirstSeries () |
| selects the first series | |
| template<class T> | |
| void | setSeriesPointLabel (const size_t &i, const size_t &j, const T &nom) |
| Sets the name of a point. | |
| void | setCurrentSeriesPointLabel (const size_t &j, const std::string &nom) |
| Sets the name of a point. | |
| std::string | getSeriesLabel (const size_t &i) const |
| gets the name of a series. | |
| std::string | getCurrentSeriesLabel () const |
| gets the name of a series. | |
| const svector_t & | getSeriesLabels () const |
| gets all the names in the series. | |
| void | setSeriesEntry (const size_t &i, const std::string &nam, const double &val, const double &xval=NAN, const double &yval=NAN) |
| sets a new entry. | |
| void | setSeriesEntry (const std::string &nom, const std::string &nam, const double &val, const double &xval=NAN, const double &yval=NAN) |
| sets a new entry. | |
| template<class T> | |
| void | setCurrentSeriesEntry (const T &nam, const double &val, const double &xval=NAN, const double &yval=NAN) |
| sets a new entry. | |
| const std::vector< DataSeries > & | getTable () const |
| gets a reference to the array of data. | |
| std::vector< DataSeries > & | refTable () |
| gets a reference to the array of data. | |
| bool | keepon (size_t &repet, double tim, bool usePrediction=false) |
| Continue for another time measure ? | |
| void | save (const std::string &filename, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="") |
| saves the data in XML format. | |
| const std::string & | getCurrentEntryId () const |
| returns the unique ID of the current series last entry | |
| const std::string & | getCurrentSeriesId (const size_t &j) const |
| returns the unique ID of the current series j'th entry. | |
| const std::string & | getId (const size_t &i, const size_t &j) |
| returns the unique ID of the i'th series j'th entry. | |
| const std::string & | getId (const std::string &name, const size_t &j) |
| returns the unique ID of the i'th series j'th entry. | |
The raw data to plot.
Represents the labels for the points (X axis) and the values for each series of measures (Y axis).
Members that set/get are named as follows :
Members are also named as follows :
| PlotData | ( | ) |
Inits a plot with series of data.
| nb_pts | number of points in each series. |
| nb_srs | number of series of points. Default is 1. |
| const DataSeries & getSeries | ( | const size_t & | i | ) | const |
Returns the ith series of measurements.
| i | ith series to be returned |
| const DataSeries & selectSeries | ( | const size_t & | i | ) |
Returns the ith series of measurements.
| i | ith series to be returned |
| const DataSeries & selectSeries | ( | const std::string & | name | ) |
Returns the series of measurements after its name.
| nom | name of series to be returned |
| DataSeries & refSeries | ( | const size_t & | i | ) |
Returns the ith series of measurements.
| i | ith series to be returned |
| DataSeries & refSeries | ( | const std::string & | nom | ) |
Returns the ith series of measurements.
| i | ith series to be returned |
| void merge | ( | const PlotData & | PD | ) |
merges another plot data to the current one.
(just adds to the end, does not merge series by name yet)
| size_t size | ( | ) | const |
get the number of series.
| void setSeriesName | ( | const size_t & | i, |
| const std::string & | nom ) |
Sets the name of a series.
| i | index of the series |
| nom | name of the series |
| const std::string & getSeriesName | ( | const size_t & | i | ) | const |
Gets the name of a series.
| i | index of the series |
| void setCurrentSeriesName | ( | const std::string & | nom | ) |
Sets the name of the current series.
| nom | name of the series |
| void initWatch | ( | const size_t & | i | ) |
Inits the watch on a series.
| i | index of a series |
| void newSeries | ( | const std::string & | nom = "" | ) |
Creates a new series.
It is created after the last series. getCurrentSeries() points to it.
| nom | name of the new series |
| void finishSeries | ( | ) |
Finish a series of measurements.
Nothing is done for the moment.
| size_t getSeriesSize | ( | const size_t & | i | ) | const |
size of a series.
| i | index of the series |
|
inline |
Sets the name of a point.
| i | series number |
| j | index for the the point |
| nom | name of the point |
| void setCurrentSeriesPointLabel | ( | const size_t & | j, |
| const std::string & | nom ) |
Sets the name of a point.
| j | index for the the point |
| nom | name of the point |
| std::string getSeriesLabel | ( | const size_t & | i | ) | const |
gets the name of a series.
Defaults to "series.i"
| i | its index. |
| std::string getCurrentSeriesLabel | ( | ) | const |
gets the name of a series.
Defaults to "series.i"
| i | its index. |
| const svector_t & getSeriesLabels | ( | ) | const |
gets all the names in the series.
| void setSeriesEntry | ( | const size_t & | i, |
| const std::string & | nam, | ||
| const double & | val, | ||
| const double & | xval = NAN, | ||
| const double & | yval = NAN ) |
sets a new entry.
| i | index of the series |
| j | index of the point |
| nam | name of the point (eg size of the matrix, name of a sparse matrix,...) |
| val | value to be inserted (eg mflops, sec,...). |
| xval | x value of the point (eg size of the matrix, of a sparse matrix,...) |
| yval | time for this computation (seconds) |
| void setSeriesEntry | ( | const std::string & | nom, |
| const std::string & | nam, | ||
| const double & | val, | ||
| const double & | xval = NAN, | ||
| const double & | yval = NAN ) |
sets a new entry.
| name | name of the series |
| j | index of the point |
| nam | name of the point (eg size of the matrix, name of a sparse matrix,...) |
| val | value to be inserted (eg mflops, sec,...). |
| xval | x value of the point (eg size of the matrix, of a sparse matrix,...) |
| yval | time for this computation (seconds) |
|
inline |
sets a new entry.
| j | index of the point |
| nam | name of the point (eg size of the matrix, name of a sparse matrix,...) |
| val | value to be inserted (eg mflops, sec,...). |
| const std::vector< DataSeries > & getTable | ( | ) | const |
gets a reference to the array of data.
_tableau_ representing the data. | std::vector< DataSeries > & refTable | ( | ) |
gets a reference to the array of data.
_tableau_ representing the data. | bool keepon | ( | size_t & | repet, |
| double | tim, | ||
| bool | usePrediction = false ) |
Continue for another time measure ?
| repet | current number of repetitions for this new measure |
| tim | time previously spent on the measures. |
| void save | ( | const std::string & | filename, |
| const std::string & | title = "", | ||
| const std::string & | xtitle = "", | ||
| const std::string & | ytitle = "" ) |
saves the data in XML format.
| filename | file name |
| title | titles of the data |
| xtitle | legend of the X axis |
| ytitle | legend of the Y axis. |
|
inline |
returns the unique ID of the current series j'th entry.
| j | index of the entry. |
|
inline |
returns the unique ID of the i'th series j'th entry.
| i | index of the series. |
| j | index of the entry. |
|
inline |
returns the unique ID of the i'th series j'th entry.
| i | index of the series. |
| j | index of the entry. |