ESyS-Particle  2.3.2
realdist.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef REALDIST_H
14 #define REALDIST_H
15 
16 // -- IO includes --
17 // -- STL includes --
18 #include <string>
19 using std::string;
20 
21 class RealDist {
22  public:
23  RealDist (double MinSize, double MaxSize, int Nbins);
24  ~RealDist ();
25  void AddSample (double evsize);
26  void Write (const string&);
27  void Clear();
28  private:
29  int nbins;
31  long Nevents;
32  void Create ();
33  void Destroy ();
34  long *Edist;
35  void AddEvSize (double evsize);
36 };
37 
38 #endif