CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
LogisticFunction.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
3//---------------------Gaussian---------------------------------------------//
4// //
5// Class LogisticFunction //
6// Joe Boudreau, November 2002 //
7// //
8//--------------------------------------------------------------------------//
9#ifndef LogisticFunction_h
10#define LogisticFunction_h 1
11#include "CLHEP/GenericFunctions/AbsFunction.hh"
12#include "CLHEP/GenericFunctions/Parameter.hh"
13#include <vector>
14namespace Genfun {
15
16 /**
17 * @author
18 * @ingroup genfun
19 */
21
23
24 public:
25
26 // Constructor
28
29 // Copy constructor
31
32 // Destructor
33 virtual ~LogisticFunction();
34
35 // Retreive function value
36 virtual double operator ()(double argument) const override;
37 virtual double operator ()(const Argument & arg) const override {return operator() (arg[0]); }
38
39 // Get the starting value of the LogisticFunction
40 Parameter & x0();
41 const Parameter & x0() const;
42
43 // Get the control parameter of the LogisticFunction
44 Parameter & a();
45 const Parameter & a() const;
46
47 private:
48
49 // It is illegal to assign an adjustable constant
50 const LogisticFunction & operator=(const LogisticFunction &right);
51
52 // Here is the decay constant
53 Parameter _x0;
54
55 // Here is the sigma
56 Parameter _a;
57
58 // A vector of values.
59 mutable std::vector<double> fx;
60 // Some cache:
61 mutable double __a, __x0;
62
63 };
64} // namespace Genfun
65
66#endif
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual double operator()(double argument) const override
Definition: Abs.hh:14