ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/CubicSpline.hpp
(Generate patch)

Comparing branches/development/src/math/CubicSpline.hpp (file contents):
Revision 1475 by gezelter, Wed Jul 21 17:51:22 2010 UTC vs.
Revision 1536 by gezelter, Wed Jan 5 14:49:05 2011 UTC

# Line 53 | Line 53 | namespace OpenMD {
53    public:    
54      CubicSpline();
55      virtual ~CubicSpline() {}
56 <    void addPoint(RealType xp, RealType yp);
56 >    void addPoint(const RealType xp, const RealType yp);
57      void addPoints(const vector<RealType>& xps, const vector<RealType>& yps);
58    void generate();
58      RealType getValueAt(RealType t);
59      pair<RealType, RealType> getValueAndDerivativeAt(RealType t);
60      
61    private:
62 +    void generate();
63      bool isUniform;
64      bool generated;
65      RealType dx;
66      int n;
67 <    vector<pair<RealType, RealType> > data;
68 <    vector<RealType> x;
69 <    vector<RealType> y;
67 >    vector<pair<RealType, RealType> > data_;
68      vector<RealType> b;
69      vector<RealType> c;
70      vector<RealType> d;    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines