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>
14
namespace
Genfun
{
15
16
/**
17
* @author
18
* @ingroup genfun
19
*/
20
class
LogisticFunction
:
public
AbsFunction
{
21
22
FUNCTION_OBJECT_DEF
(
LogisticFunction
)
23
24
public
:
25
26
// Constructor
27
LogisticFunction
();
28
29
// Copy constructor
30
LogisticFunction
(
const
LogisticFunction
&right);
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
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
AbsFunction.hh:143
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Argument
Definition:
Argument.hh:17
Genfun::LogisticFunction
Definition:
LogisticFunction.hh:20
Genfun::LogisticFunction::x0
Parameter & x0()
Definition:
LogisticFunction.cc:62
Genfun::LogisticFunction::a
Parameter & a()
Definition:
LogisticFunction.cc:66
Genfun::LogisticFunction::operator()
virtual double operator()(double argument) const override
Definition:
LogisticFunction.cc:29
Genfun::LogisticFunction::LogisticFunction
LogisticFunction()
Definition:
LogisticFunction.cc:14
Genfun::LogisticFunction::~LogisticFunction
virtual ~LogisticFunction()
Definition:
LogisticFunction.cc:19
Genfun::Parameter
Definition:
Parameter.hh:35
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
LogisticFunction.hh
Generated by
1.9.6