00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_PROBABILITY_H_
00028 #define CEYLAN_PROBABILITY_H_
00029
00030
00031 #include "CeylanMathsBasic.h"
00032 #include "CeylanTypes.h"
00033
00034
00035 #include <string>
00036
00037
00038
00039 namespace Ceylan
00040 {
00041
00042
00043 namespace Maths
00044 {
00045
00046
00047 namespace Random
00048 {
00049
00050
00051
00053 typedef Ceylan::Sint32 Sample ;
00054
00055
00057 typedef Ceylan::Float32 Deviation ;
00058
00059
00061 typedef Ceylan::Float32 Probability ;
00062
00063
00064
00072 class CEYLAN_DLL ProbabilityFunction : public Ceylan::Functor
00073 {
00074
00075 public:
00076
00077
00079 ProbabilityFunction() ;
00080
00081
00083 virtual ~ProbabilityFunction() throw() ;
00084
00085
00086
00092 virtual Probability operator() ( Sample aSample )
00093 const = 0 ;
00094
00095
00096
00109 virtual const std::string toString(
00110 VerbosityLevels level = high ) const = 0 ;
00111
00112
00113
00114 } ;
00115
00116
00117 }
00118
00119 }
00120
00121 }
00122
00123
00124
00125 #endif // CEYLAN_PROBABILITY_H_
00126