ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef REALDIST_H 00014 #define REALDIST_H 00015 00016 // -- IO includes -- 00017 // -- STL includes -- 00018 #include <string> 00019 using std::string; 00020 00021 class RealDist { 00022 public: 00023 RealDist (double MinSize, double MaxSize, int Nbins); 00024 ~RealDist (); 00025 void AddSample (double evsize); 00026 void Write (const string&); 00027 void Clear(); 00028 private: 00029 int nbins; 00030 double maxsize, minsize, binsize; 00031 long Nevents; 00032 void Create (); 00033 void Destroy (); 00034 long *Edist; 00035 void AddEvSize (double evsize); 00036 }; 00037 00038 #endif