calibrationhelpers.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) 2015 Paolo Mazzocchi
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_calibrationhelper_hpp
21 #define qla_calibrationhelper_hpp
22 
23 #include <oh/libraryobject.hpp>
24 
25 #include <ql/types.hpp>
26 
27 
28 namespace QuantLib {
29  class BlackCalibrationHelper;
30  class Quote;
31  class Period;
32  class DayCounter;
33  class IborIndex;
34  class YieldTermStructure;
35 
36  template <class T>
37  class Handle;
38 }
39 
40 namespace QuantLibAddin {
41 
42  class BlackCalibrationHelper : public ObjectHandler::LibraryObject<QuantLib::BlackCalibrationHelper> {
43  //public:
44  // std::string quoteName() { return quoteName_; }
45  protected:
46  OH_LIB_CTOR(BlackCalibrationHelper, QuantLib::BlackCalibrationHelper);
47  // std::string quoteName_;
48  };
49 
51  public:
52  SwaptionHelper(const boost::shared_ptr<ObjectHandler::ValueObject>& properties,
53  const QuantLib::Period& maturity,
54  const QuantLib::Period& length,
55  const QuantLib::Handle<QuantLib::Quote>& volatility,
56  const boost::shared_ptr<QuantLib::IborIndex>& index,
57  const QuantLib::Period& fixedLegTenor,
58  const QuantLib::DayCounter& fixedLegDayCounter,
59  const QuantLib::DayCounter& floatingLegDayCounter,
61  CalibrationHelper::CalibrationErrorType errorType
62  = CalibrationHelper::RelativePriceError,
63  const Real strike = Null<Real>(),
64  const Real nominal = 1.0,
65  const Real shift = 0.0*/,
66  bool permanent);
67  };
68 
69 }
70 
71 #endif
OH_LIB_CTOR(BlackCalibrationHelper, QuantLib::BlackCalibrationHelper)
Definition: calibrationhelpers.hpp:42
Definition: abcd.hpp:38
Definition: calibrationhelpers.hpp:50
Definition: abcd.hpp:30
SwaptionHelper(const boost::shared_ptr< ObjectHandler::ValueObject > &properties, const QuantLib::Period &maturity, const QuantLib::Period &length, const QuantLib::Handle< QuantLib::Quote > &volatility, const boost::shared_ptr< QuantLib::IborIndex > &index, const QuantLib::Period &fixedLegTenor, const QuantLib::DayCounter &fixedLegDayCounter, const QuantLib::DayCounter &floatingLegDayCounter, const QuantLib::Handle< QuantLib::YieldTermStructure > &termStructure, bool permanent)