Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/PlotTools.h @ 45:d23685b9e766
Fixed the alignment error caluculations and added histogram plotting
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 May 2012 21:53:11 +0100 |
parents | b7ad807c9cde |
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