QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
volatilityinterpolationspecifier.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
5Copyright (C) 2007 Mark Joshi
6
7This file is part of QuantLib, a free-software/open-source library
8for financial quantitative analysts and developers - http://quantlib.org/
9
10QuantLib is free software: you can redistribute it and/or modify it
11under the terms of the QuantLib license. You should have received a
12copy of the license along with this program; if not, please email
13<quantlib-dev@lists.sf.net>. The license is also available online at
14<http://quantlib.org/license.shtml>.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20/*! abstract base class
21implementation specifies how to decide volatility structure for additional
22synthetic rates which are interleaved
23
24*/
25
26#ifndef volatility_interpolation_specifier_hpp
27#define volatility_interpolation_specifier_hpp
28
29
30
32#include <ql/types.hpp>
33#include <ql/shared_ptr.hpp>
34#include <vector>
35
36
37namespace QuantLib
38{
40 {
41 public:
44 virtual void setScalingFactors(const std::vector<Real>& scales)=0;
45 virtual void setLastCapletVol(Real vol)=0;
46
47
48 virtual const std::vector<ext::shared_ptr<PiecewiseConstantVariance> >& interpolatedVariances() const=0;
49 virtual const std::vector<ext::shared_ptr<PiecewiseConstantVariance> >& originalVariances() const=0;
50
51 virtual Size getPeriod() const=0;
52 virtual Size getOffset() const=0;
53 virtual Size getNoBigRates() const=0;
54 virtual Size getNoSmallRates() const=0;
55 };
56}
57
58#endif
virtual void setLastCapletVol(Real vol)=0
virtual void setScalingFactors(const std::vector< Real > &scales)=0
virtual const std::vector< ext::shared_ptr< PiecewiseConstantVariance > > & originalVariances() const =0
virtual const std::vector< ext::shared_ptr< PiecewiseConstantVariance > > & interpolatedVariances() const =0
QL_REAL Real
real number
Definition: types.hpp:50
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:35
Maps shared_ptr to either the boost or std implementation.
Custom types.