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 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC

# Line 36 | Line 36
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38   * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   #ifndef MATH_CUBICSPLINE_HPP
# Line 53 | Line 54 | namespace OpenMD {
54    public:    
55      CubicSpline();
56      virtual ~CubicSpline() {}
57 <    void addPoint(RealType xp, RealType yp);
57 >    void addPoint(const RealType xp, const RealType yp);
58      void addPoints(const vector<RealType>& xps, const vector<RealType>& yps);
58    void generate();
59      RealType getValueAt(RealType t);
60      pair<RealType, RealType> getValueAndDerivativeAt(RealType t);
61      
62    private:
63 +    void generate();
64      bool isUniform;
65      bool generated;
66      RealType dx;
67      int n;
68 <    vector<pair<RealType, RealType> > data;
68 <    vector<RealType> x;
69 <    vector<RealType> y;
68 >    vector<pair<RealType, RealType> > data_;
69      vector<RealType> b;
70      vector<RealType> c;
71      vector<RealType> d;    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines