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_NORMAL_PROBABILITY_H_
00028 #define CEYLAN_NORMAL_PROBABILITY_H_
00029
00030
00031 #include "CeylanProbability.h"
00032 #include "CeylanMathsBasic.h"
00033
00034 #include <string>
00035
00036
00037
00038 namespace Ceylan
00039 {
00040
00041
00042 namespace Maths
00043 {
00044
00045
00046 namespace Random
00047 {
00048
00049
00050
00055 class CEYLAN_DLL NormalProbabilityFunction :
00056 public ProbabilityFunction
00057 {
00058
00059
00060 public:
00061
00062
00074 NormalProbabilityFunction( Sample mean, Deviation sigma ) ;
00075
00076
00077
00079 virtual ~NormalProbabilityFunction() throw() ;
00080
00081
00082
00093 virtual Probability operator() ( Sample aSample ) const ;
00094
00095
00096
00109 virtual const std::string toString(
00110 VerbosityLevels level = high ) const ;
00111
00112
00113
00114 protected:
00115
00116
00117
00119 Sample _mean ;
00120
00121
00123 Deviation _sigma ;
00124
00125
00126
00127 } ;
00128
00129
00130 }
00131
00132 }
00133
00134 }
00135
00136
00137
00138 #endif // CEYLAN_NORMAL_PROBABILITY_H_
00139