Histogram.h
#pragma once #include "stdafx.h" #include "Matrix.h" class Histogram { public: Histogram(); void setNumBuckets( int n ); void setTitle( const std::string& title ); void setData( const std::vector<double>& v ); void writeAsHTML( std::ostream& out ) const; void writeAsHTML( const std::string& file ) const; private: int numBuckets; std::string title; Matrix data; }; void testHistogram();