#include <GMMGnuplotVisualization.h>
|
void | addPointToBuffer (double x, double y) |
|
void | initPlot (const std::string &pPlotTitle, const std::string &pXLabel, const std::string &pYLabel, const std::pair< double, double > &pXRange, const std::pair< double, double > &pYRange, unsigned int samples) |
|
void | sendPlot () |
|
Visualizes and writes histograms to file.
Definition at line 41 of file GMMGnuplotVisualization.h.
Visualization::GMMGnuplotVisualization::GMMGnuplotVisualization |
( |
| ) |
|
Visualization::GMMGnuplotVisualization::~GMMGnuplotVisualization |
( |
| ) |
|
void Visualization::GMMGnuplotVisualization::addPointToBuffer |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
private |
void Visualization::GMMGnuplotVisualization::initPlot |
( |
const std::string & |
pPlotTitle, |
|
|
const std::string & |
pXLabel, |
|
|
const std::string & |
pYLabel, |
|
|
const std::pair< double, double > & |
pXRange, |
|
|
const std::pair< double, double > & |
pYRange, |
|
|
unsigned int |
samples |
|
) |
| |
|
private |
Initializes the Gnuplot
- Parameters
-
pPlotTitle | - the name of the plot |
pxLabel | - label of the x-axis |
pyLabel | - label of the y-axis |
pXRange | - x-axis range (min, max) |
pYRange | - y-axis range (min, max) |
samples | - number of samples |
Definition at line 58 of file GMMGnuplotVisualization.cpp.
void Visualization::GMMGnuplotVisualization::plotOrientationHistogram |
( |
const std::string & |
filename, |
|
|
const std::vector< std::pair< double, double >> |
data, |
|
|
const std::string & |
rotaxis |
|
) |
| |
Writes the data to the gnuplot file with the given name and displays the gnuplot as a histogram
- Parameters
-
filename | Name of the gnuplot file to write into. |
data | Data to be written. Interpreted as buckets over [-pi,pi]. |
rotaxis | Name of the axis around which the orientation is given. |
Definition at line 25 of file GMMGnuplotVisualization.cpp.
void Visualization::GMMGnuplotVisualization::sendPlot |
( |
| ) |
|
|
private |
Sends the data to the gnuplot and draws the window which contains the plot. Also writes the gnuplot data created and used to file.
Definition at line 84 of file GMMGnuplotVisualization.cpp.
std::vector<std::pair<double, double> > Visualization::GMMGnuplotVisualization::mPointBuffer |
|
private |
The documentation for this class was generated from the following files: