Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/Histogram.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 | |
children | 689704aa55d5 |
line wrap: on
line source
/* * Histogram.h * annotationResultCalculator * * Created by Andrew on 08/05/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef HISTOGRAM #define HISTOGRAM #include "ofMain.h" class Histogram{ public: Histogram(); typedef std::vector<double> DoubleVector; typedef std::vector<int> IntVector; IntVector histogram; void createHistogram(const int& binWidth, const int& numberofBins, DoubleVector& data); void plotHistogram(); void plotHistogram(const double& maxHeight); int numberofBins; int binWidth; double maximum; int getY(const int& y); int screenHeight; }; #endif