43 #ifndef G4POLYNOMIALPDF_HH
44 #define G4POLYNOMIALPDF_HH
std::vector< G4double > fCoefficients
void SetCoefficients(const std::vector< G4double > &v)
static const G4float tolerance
void SetTolerance(G4double tolerance)
void SetNCoefficients(size_t n)
G4PolynomialPDF(size_t n=0, const double *coeffs=nullptr, G4double x1=0, G4double x2=1)
G4double GetX(G4double p, G4double x1, G4double x2, G4int ddxPower=0, G4double guess=1.e99, G4bool bisect=true)
G4double Bisect(G4double p, G4double x1, G4double x2)
G4double GetCoefficient(size_t i) const
void SetDomain(G4double x1, G4double x2)
void SetCoefficient(size_t i, G4double value)
G4bool HasNegativeMinimum(G4double x1, G4double x2)
const G4double x[NPOINTSGL]
size_t GetNCoefficients() const
G4double EvalInverseCDF(G4double p)
G4double Evaluate(G4double x, G4int ddxPower=0)