ESyS-Particle  2.3
probdist.h
Go to the documentation of this file.
1 // //
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 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
~ProbDist()
Definition: probdist.cpp:50
void Write(const char *filename, double EvRate)
Definition: probdist.cpp:69
void Destroy()
Definition: probdist.cpp:44
double minsize
Definition: probdist.h:30
int disttype
Definition: probdist.h:29
double binsize
Definition: probdist.h:30
double maxsize
Definition: probdist.h:30
double base
Definition: probdist.h:30
Definition: probdist.h:20
long * Edist
Definition: probdist.h:34
double * Vdist
Definition: probdist.h:35
long Nevents
Definition: probdist.h:31
void AddSample(double evsize)
Definition: probdist.cpp:55
long nbins
Definition: probdist.h:28
void AddEvSize(double evsize)
Definition: probdist.cpp:108
ProbDist(double MinSize, double MaxSize, double BaseConst, int DistType)
Definition: probdist.cpp:18
void Create()
Definition: probdist.cpp:35