source: src/RandomNumbers/RandomNumberDistribution.hpp@ 4464ef

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction Subpackage_levmar Subpackage_vmg ThirdParty_MPQC_rebuilt_buildsystem TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since 4464ef was 0275ad, checked in by Frederik Heber <heber@…>, 14 years ago

Final step in Random numbers is done ...

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*
2 * RandomNumberDistribution.hpp
3 *
4 * Created on: Jan 01, 2011
5 * Author: heber
6 */
7
8#ifndef RANDOMNUMBERDISTRIBUTION_HPP_
9#define RANDOMNUMBERDISTRIBUTION_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16class RandomNumberDistributionFactoryTest;
17class RandomNumberGenerator;
18class RandomNumberDistribution_Parameters;
19
20/** Abstract base class for a random number distribution.
21 *
22 * This class represents the interface to the random number distribution.
23 * Hence, they all can be accessed the same way.
24 *
25 * It is also the base class that is needed for RandomNumberGeneratorFactory.
26 */
27class RandomNumberDistribution
28{
29 /**
30 * test has to access cstor/dstor.
31 */
32 friend class RandomNumberDistributionFactoryTest;
33
34 /**
35 * RandomNumberGenerator(_Encapsulation) needs access to dstor.
36 */
37 friend class RandomNumberGenerator;
38
39public:
40 /** Getter for the whole set of possible parameters.
41 *
42 * @return filled instance of RandomNumberDistribution_Parameters
43 */
44 virtual RandomNumberDistribution_Parameters* getParameterSet() const=0;
45
46 /** Getter for smallest value the uniform_... engines produces.
47 *
48 * @return smallest value
49 */
50 virtual double min() const=0;
51
52 /** Getter for largest value the uniform_... engines produces.
53 *
54 * @return largest value
55 */
56 virtual double max() const=0;
57
58
59 /** Getter for bernoulli_distribution probability p.
60 *
61 * @return p
62 */
63 virtual double p() const=0;
64
65 /** Getter for binomial_distribution's parameter t.
66 *
67 * @return t
68 */
69 virtual double t() const=0;
70
71 /** Getter for cauchy_distribution parameter median.
72 *
73 * @return median
74 */
75 virtual double median() const=0;
76
77 /** Getter for cauchy_distribution parameter sigma.
78 *
79 * @return sigma
80 */
81 virtual double sigma() const=0;
82
83 /** Getter for gamma_distribution parameter alpha.
84 *
85 * @return alpha
86 */
87 virtual double alpha() const=0;
88
89 /** Getter for poisson_distribution's parameter mean.
90 *
91 * @return mean
92 */
93 virtual double mean() const=0;
94
95 /** Getter for triangle_distribution parameter a.
96 *
97 * @return a
98 */
99 virtual double a() const=0;
100
101 /** Getter for triangle_distribution parameter b.
102 *
103 * @return b
104 */
105 virtual double b() const=0;
106
107 /** Getter for triangle_distribution parameter c.
108 *
109 * @return c
110 */
111 virtual double c() const=0;
112
113 /** Getter for exponential_distribution parameter lambda.
114 *
115 * @return lambda
116 */
117 virtual double lambda() const=0;
118
119 /** Getter for the type name of the internal distribution.
120 *
121 * @return name of distribution
122 */
123 virtual std::string name()=0;
124
125 /** Destructor of class RandomNumberDistribution.
126 *
127 * @note must be public such that instances from factory can be destroyed.
128 *
129 */
130 virtual ~RandomNumberDistribution() {};
131protected:
132
133 /** Constructor of class RandomNumberDistribution.
134 *
135 * @note is protected such that instances can only be created by the factory.
136 */
137 RandomNumberDistribution() {};
138};
139
140#endif /* RANDOMNUMBERDISTRIBUTION_HPP_ */
Note: See TracBrowser for help on using the repository browser.