Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/Histogram.h @ 46:ba36a1721538
Added abs median calculation, match forwards and backwards paths
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 May 2012 23:16:00 +0100 |
parents | d23685b9e766 |
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