ESyS-Particle  2.2
probdist.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2013 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
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 PROBDIST_H
14 
15 #define PROBDIST_H
16 
17 #include <stdio.h>
18 #include <stdlib.h>
19 
20 class ProbDist {
21  public:
22  ProbDist (double MinSize, double MaxSize, double BaseConst, int DistType);
23  ~ProbDist ();
24  void AddSample (double evsize);
25  void AddSample (double evsize,double weight);
26  void Write (const char *filename, double EvRate);
27  private:
28  long nbins;
29  int disttype;
31  long Nevents;
32  void Create ();
33  void Destroy ();
34  long *Edist;
35  double *Vdist;
36  void AddEvSize (double evsize);
37  void AddEvSize (double evsize,double weight);
38 };
39 
40 #endif