GooFit  v2.1.3
PolynomialPdf.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <goofit/PDFs/GooPdf.h>
4 
5 namespace GooFit {
6 
7 class PolynomialPdf : public GooPdf {
8  public:
9  PolynomialPdf(std::string n, Observable _x, std::vector<Variable> weights, unsigned int lowestDegree = 0);
11  std::string n, Observable _x, std::vector<Variable> weights, Variable x0, unsigned int lowestDegree = 0);
12  PolynomialPdf(std::string n,
13  std::vector<Observable> obses,
14  std::vector<Variable> coeffs,
15  std::vector<Variable> offsets,
16  unsigned int maxDegree = 0);
17  __host__ fptype integrate(fptype lo, fptype hi) const override;
18  //__host__ virtual bool hasAnalyticIntegral () const {return (1 == observables.size());}
19  __host__ fptype getCoefficient(int coef) const;
20 
21  private:
22  std::unique_ptr<Variable> center;
23 };
24 } // namespace GooFit
double fptype
std::vector< Variable > weights
__host__ fptype getCoefficient(int coef) const
__host__ fptype integrate(fptype lo, fptype hi) const override
Special class for observables. Used in DataSets.
Definition: Variable.h:109
PolynomialPdf(std::string n, Observable _x, std::vector< Variable > weights, unsigned int lowestDegree=0)