QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
blackcapfloorengine.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Ferdinando Ametrano
5 Copyright (C) 2001, 2002, 2003 Sadruddin Rejeb
6 Copyright (C) 2006 StatPro Italia srl
7
8 This file is part of QuantLib, a free-software/open-source library
9 for financial quantitative analysts and developers - http://quantlib.org/
10
11 QuantLib is free software: you can redistribute it and/or modify it
12 under the terms of the QuantLib license. You should have received a
13 copy of the license along with this program; if not, please email
14 <quantlib-dev@lists.sf.net>. The license is also available online at
15 <http://quantlib.org/license.shtml>.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the license for more details.
20*/
21
26#ifndef quantlib_pricers_black_capfloor_hpp
27#define quantlib_pricers_black_capfloor_hpp
28
29#include <ql/instruments/capfloor.hpp>
30#include <ql/termstructures/volatility/optionlet/optionletvolatilitystructure.hpp>
31
32namespace QuantLib {
33
34 class Quote;
35
37
39 public:
41 Volatility vol,
42 const DayCounter& dc = Actual365Fixed(),
43 Real displacement = 0.0);
45 const Handle<Quote>& vol,
46 const DayCounter& dc = Actual365Fixed(),
47 Real displacement = 0.0);
51 void calculate() const override;
54 Real displacement() const { return displacement_; }
55
56 private:
60 };
61
62}
63
64#endif
Actual/365 (Fixed) day count convention.
Black-formula cap/floor engine.
Handle< YieldTermStructure > discountCurve_
Handle< OptionletVolatilityStructure > volatility()
Handle< OptionletVolatilityStructure > vol_
Handle< YieldTermStructure > termStructure()
base class for cap/floor engines
Definition: capfloor.hpp:158
day counter class
Definition: daycounter.hpp:44
Shared handle to an observable.
Definition: handle.hpp:41
template class providing a null value for a given type.
Definition: null.hpp:76
QL_REAL Real
real number
Definition: types.hpp:50
Real Volatility
volatility
Definition: types.hpp:78
Definition: any.hpp:35