Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/Histogram.h @ 47:689704aa55d5
Added square and better scrolling through the matrix, better loading of files
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Wed, 09 May 2012 12:38:00 +0100 |
parents | d23685b9e766 |
children | 5359e2c0b0fb |
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); void processDataIntoHistogram(const DoubleVector& data); void plotHistogram(); void plotHistogram(const double& maxHeight); void setBinPoints(); int numberofBins; int binWidth; double minimumBinValue, maximumBinValue; DoubleVector binPoints; double maximum; int numberOutsideRange; int getY(const int& y); int screenHeight; }; #endif