Linear.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
13 #ifndef _Linear_H_
14 #define _Linear_H_
15 
16 #include "FunctionBase.h"
17 
18 namespace hippodraw {
19 
26 {
27 
28 protected:
29 
31  virtual void initialize ();
32 
33 public:
34 
36  Linear ();
37 
39  Linear ( double slope, double intercept );
40 
41  virtual FunctionBase * clone () const;
42 
44  virtual double operator () ( double x ) const;
45 
46  virtual void initialParameters ( const FunctionHelper * helper );
47 
48 protected:
49 
50  virtual double derivByParm ( int i, double x ) const;
51 
52 };
53 
54 } // namespace hippodraw
55 
56 #endif // _Linear_H_

Generated for HippoDraw Class Library by doxygen