ConstantF.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*-
2  *
3  * HippoPlot ConstantF class interface
4  *
5  * Copyright (C) 2000, 2003 The Board of Trustees of The Leland
6  * Stanford Junior University. All Rights Reserved.
7  *
8  * $Id: ConstantF.h,v 1.32 2005/10/30 00:10:11 pfkeb Exp $
9  *
10  */
11 
12 #ifndef _ConstantF_H_
13 #define _ConstantF_H_
14 
15 #include "FunctionBase.h"
16 
17 namespace hippodraw {
18 
30 {
31 protected:
32 
34  virtual void initialize ();
35 
36  public:
37 
39  ConstantF ();
40 
43  explicit ConstantF ( double value );
44 
45  virtual FunctionBase * clone () const;
46 
48  virtual double operator () ( double x ) const;
49 
50  virtual void initialParameters ( const FunctionHelper * helper );
51 
52 protected:
53 
54  virtual double derivByParm ( int i, double x ) const;
55 
56 };
57 
58 } // namespace hippodraw
59 
60 #endif // _ConstantF_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
unsigned int i
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
A ConstantF function can be used with a fitter.
Definition: ConstantF.h:29
A function that can be added to a DataRep and used in a fitter.
Definition: FunctionBase.h:90
An abstract base class to help FunctionBase objects perform some operations.
hippodraw::FunctionBase class interface

Generated for HippoDraw Class Library by doxygen