interpolation2D.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 /*
4  Copyright (C) 2006 Ferdinando Ametrano
5 
6  This file is part of QuantLib, a free-software/open-source library
7  for financial quantitative analysts and developers - http://quantlib.org/
8 
9  QuantLib is free software: you can redistribute it and/or modify it
10  under the terms of the QuantLib license. You should have received a
11  copy of the license along with this program; if not, please email
12  <quantlib-dev@lists.sf.net>. The license is also available online at
13  <http://quantlib.org/license.shtml>.
14 
15  This program is distributed in the hope that it will be useful, but WITHOUT
16  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  FOR A PARTICULAR PURPOSE. See the license for more details.
18 */
19 
20 #ifndef qla_interpolation2D_hpp
21 #define qla_interpolation2D_hpp
22 
23 #include <oh/libraryobject.hpp>
24 #include <qlo/extrapolator.hpp>
25 #include <ql/math/matrix.hpp>
26 
27 namespace QuantLibAddin {
28 
29  class Interpolation2D : public Extrapolator
30  {
31  public:
32  Interpolation2D(const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
33  const std::string &interpolation2DType,
34  const std::vector<double>& x,
35  const std::vector<double>& y,
36  const QuantLib::Matrix& dataMatrix,
37  bool permanent);
38  protected:
39  std::vector<QuantLib::Real> x_, y_;
40  QuantLib::Matrix dataMatrix_;
41  };
42 
43 }
44 
45 #endif
Interpolation2D(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, const std::string &interpolation2DType, const std::vector< double > &x, const std::vector< double > &y, const QuantLib::Matrix &dataMatrix, bool permanent)
Definition: interpolation2D.hpp:29
Definition: extrapolator.hpp:31
Definition: abcd.hpp:38
QuantLib::Matrix dataMatrix_
Definition: interpolation2D.hpp:40
std::vector< QuantLib::Real > x_
Definition: interpolation2D.hpp:39
std::vector< QuantLib::Real > y_
Definition: interpolation2D.hpp:39