FunctionFactory.cxx
Go to the documentation of this file.
1 
12 // for truncation warning in debug mode
13 #ifdef _MSC_VER
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
18 
19 // List of default functions
21 #include "functions/ConstantF.h"
22 #include "functions/Erfc.h"
23 #include "functions/Exponential.h"
24 #include "functions/Gaussian.h"
25 #include "functions/Landau.h"
26 #include "functions/Linear.h"
28 #include "functions/LogNormal.h"
29 #include "functions/LogParabola.h"
30 #include "functions/Novosibirsk.h"
31 #include "functions/PowerLaw.h"
32 #include "functions/Quadratic.h"
33 #include "functions/Quadratic2.h"
34 #include "functions/Chi2Dist.h"
35 #include "functions/Weibull.h"
36 
37 using namespace hippodraw;
38 
40 
42 {
43 }
44 
46 {
47  if ( s_instance == 0 ) {
48  s_instance = new FunctionFactory ();
50  }
51  return s_instance;
52 }
53 
55 {
56  add ( new Gaussian () );
57  add ( new Erfc () );
58  add ( new Exponential () );
59  add ( new Landau () );
60  add ( new Linear () );
61  add ( new LinearSumFunction () );
62  add ( new LogNormal () );
63  add ( new LogParabola () );
64  add ( new Novosibirsk () );
65  add ( new PowerLaw () );
66  add ( new BrokenPowerLaw () );
67  add ( new Quadratic () );
68  add ( new Quadratic2 () );
69  add ( new ConstantF () );
70  add ( new Chi2Dist () );
71  add ( new Weibull () );
72 }
void initialize()
Initializes the factory with a set of default functions.
static FunctionFactory * instance()
Returns a pointer to the singleton instance.
BrokenPowerLaw class interface.
A Factory singleton class for creating objects whose class derives from FunctionBase.
A function can be used with a fitter.
Definition: PowerLaw.h:25
Quadratic class interface.
chi-squared distribution class interface
Gaussian class interface.
The function represents the Landau distribution.
Definition: Landau.h:47
hippodraw::Novosibirsk class interface
A function that can be used with a fitter.
Definition: Gaussian.h:31
LogParabola class interface.
hippodraw::LogNormal class interface
A function that can be used with a fitter.
Definition: Erfc.h:44
Quadratic2 class interface.
A function that can be used with a fitter.
Definition: LogNormal.h:28
void add(FunctionBase *)
Adds a prototype object to the list of prototypes.
This function represents a quadratic, i.e., .
Definition: Quadratic2.h:27
Linear function class interface.
A function that can be used with a fitter.
A function can be used with a fitter.
Definition: Weibull.h:25
A function that can be used with a fitter.
Definition: Novosibirsk.h:28
A function that can be used with a fitter.
Definition: LogParabola.h:29
FunctionFactory class interface.
Exponential class interface.
Landau function class interface.
A ConstantF function can be used with a fitter.
Definition: ConstantF.h:29
static FunctionFactory * s_instance
A pointer to the singleton object.
FunctionFactory()
A default constructor for prevent creation except by the itself or the derived classes.
PowerLaw class interface.
A function can be used with a fitter.
Definition: Exponential.h:25
Complementary Error function class interface (hippodraw::Erfc)
hippodraw::LinearSumFunction class interface
A function that can be used with a fitter.
Definition: Quadratic.h:28
Weibull class interface.
A function can be used with a fitter.
Definition: Linear.h:25
A function can be used with a fitter.
A function can be used with a fitter.
Definition: Chi2Dist.h:28

Generated for HippoDraw Class Library by doxygen