flatForward.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_FLATFORWARD_HPP
2 #define JULIAN_FLATFORWARD_HPP
3 
5 
6 namespace julian {
24  class FlatForward: public Interpolation {
25  public:
26  FlatForward(){};
27  virtual double operator()(const std::vector<double>&,const std::vector<double>&,const double&) const;
28  virtual FlatForward* clone() const;
29  virtual std::string info() const;
30  virtual unsigned int getMinSize() const;
31  virtual ~FlatForward(){};
32  friend class boost::serialization::access;
33  private:
34 
37  template<class Archive>
38  void serialize(Archive & , const unsigned int){
39  boost::serialization::base_object<Interpolation>(*this);
40  }
41  };
42 }
43 #endif
Definition: cadHoliday.cpp:3
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: flatForward.hpp:38
File contains interface of interpolation methods.
Class implements the flat forward interpolation technique.
Definition: flatForward.hpp:24
virtual unsigned int getMinSize() const
return the minimum number of points required by the interpolation
Definition: flatForward.cpp:33
Class is an abstract type expressing the concept of interpolation.
Definition: interpolation.hpp:29
virtual double operator()(const std::vector< double > &, const std::vector< double > &, const double &) const
Performs interpolation.
Definition: flatForward.cpp:12
virtual std::string info() const
Name of a class.
Definition: flatForward.cpp:41
virtual FlatForward * clone() const
Virtual copy constructor.
Definition: flatForward.cpp:29