Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/PlotTools.h @ 49:8df911733fdc
Added new histogram functions - absolute error graphs like Match paper
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 22 May 2012 22:53:44 +0100 |
parents | d23685b9e766 |
children |
line wrap: on
line source
/* * PlotTools.h * annotationResultCalculator * * Created by Andrew on 04/05/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef PLOT_TOOLS #define PLOT_TOOLS #include "ofMain.h" class PlotTools{ public: PlotTools(); typedef std::vector<double> DoubleVector; void plotVector(const DoubleVector& d); void plotVector(const DoubleVector& d, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); void plotTwoVectors(const DoubleVector& d, const DoubleVector& h); void plotTwoVectors(const DoubleVector& d, const DoubleVector& h, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd, const bool drawAxes); double screenHeight; double screenWidth; int getY(const int& y); bool plotPoints; }; #endif