CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Erf.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: Erf.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3//---------------------Erf--------------------------------------------------//
4// //
5// Class Erf //
6// Joe Boudreau, Petar Maksimovic, November 1999 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef Erf_h
10#define Erf_h 1
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12#include "CLHEP/GenericFunctions/Parameter.hh"
13#include "CLHEP/GenericFunctions/IncompleteGamma.hh"
14namespace Genfun {
15
16 /**
17 * @author
18 * @ingroup genfun
19 */
20 class Erf : public AbsFunction {
21
23
24 public:
25
26 // Constructor
27 Erf();
28
29 // Copy constructor
30 Erf(const Erf &right);
31
32 // Destructor
33 virtual ~Erf();
34
35 // Retreive function value
36 virtual double operator ()(double argument) const override;
37 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
38
39 // Derivative.
40 Derivative partial (unsigned int) const override;
41
42 // Does this function have an analytic derivative?
43 virtual bool hasAnalyticDerivative() const override {return true;}
44
45 private:
46
47 // It is illegal to assign an adjustable constant
48 const Erf & operator=(const Erf &right);
49
50 IncompleteGamma _incompleteGamma;
51
52 };
53} // namespace Genfun
54#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual bool hasAnalyticDerivative() const override
Definition: Erf.hh:43
virtual ~Erf()
Definition: Erf.cc:22
Derivative partial(unsigned int) const override
Definition: Erf.cc:40
virtual double operator()(double argument) const override
Definition: Erf.cc:25
Erf()
Definition: Erf.cc:12
Definition: Abs.hh:14