File indexing completed on 2025-01-18 09:54:34
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BetaDistribution_h
0010 #define BetaDistribution_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 #include "CLHEP/GenericFunctions/LogGamma.hh"
0014 #define _BETADISTRIBUTION_REVISED_ 1
0015 namespace Genfun {
0016
0017
0018
0019
0020
0021 class BetaDistribution : public AbsFunction {
0022
0023 FUNCTION_OBJECT_DEF(BetaDistribution)
0024
0025 public:
0026
0027
0028 BetaDistribution();
0029
0030
0031 BetaDistribution(const BetaDistribution &right);
0032
0033
0034 virtual ~BetaDistribution();
0035
0036
0037 virtual double operator ()(double argument) const override;
0038 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0039
0040
0041 Parameter & alpha();
0042
0043
0044 Parameter & beta();
0045
0046 private:
0047
0048
0049 const BetaDistribution & operator=(const BetaDistribution &right);
0050
0051
0052
0053 Parameter _alpha;
0054 Parameter _beta;
0055
0056
0057
0058 LogGamma _logGamma;
0059
0060
0061 };
0062 }
0063 #endif