SST  11.0.0
StructuralSimulationToolkit
distrib.h
1 // Copyright 2009-2021 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2021, NTESS
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 
12 
13 #ifndef _H_SST_CORE_RNG_DISTRIB
14 #define _H_SST_CORE_RNG_DISTRIB
15 
16 
17 namespace SST {
18 namespace RNG {
19 
20 /**
21  * \class SSTRandomDistribution
22  * Base class of statistical distributions in SST.
23  */
25 
26  public:
27  /**
28  Obtains the next double from the distribution
29  \return The next double in the distribution being sampled
30  */
31  virtual double getNextDouble() = 0;
32 
33  /**
34  Destroys the distribution
35  */
36  virtual ~SSTRandomDistribution() {};
37 
38  /**
39  Creates the base (abstract) class of a distribution
40  */
42 
43 };
44 
45 }
46 }
47 
48 #endif
virtual ~SSTRandomDistribution()
Destroys the distribution.
Definition: distrib.h:36
virtual double getNextDouble()=0
Obtains the next double from the distribution.
Base class of statistical distributions in SST.
Definition: distrib.h:24
SSTRandomDistribution()
Creates the base (abstract) class of a distribution.
Definition: distrib.h:41