QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
cotswapfromfwdcorrelation.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) 2007 Mark Joshi
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy 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
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
21#ifndef quantlib_fra_time_dep_corr_struct_hpp
22#define quantlib_fra_time_dep_corr_struct_hpp
23
24#include <ql/models/marketmodels/piecewiseconstantcorrelation.hpp>
25#include <vector>
26
27namespace QuantLib {
28
29 class CurveState;
30
32 public:
34 const ext::shared_ptr<PiecewiseConstantCorrelation>& fwdCorr,
35 const CurveState& curveState,
36 Spread displacement);
37 const std::vector<Time>& times() const override;
38 const std::vector<Time>& rateTimes() const override;
39 const std::vector<Matrix>& correlations() const override;
40 Size numberOfRates() const override;
41
42 private:
43 ext::shared_ptr<PiecewiseConstantCorrelation> fwdCorr_;
45 std::vector<Matrix> swapCorrMatrices_;
46 };
47
48}
49
50#endif
const std::vector< Time > & rateTimes() const override
const std::vector< Time > & times() const override
const std::vector< Matrix > & correlations() const override
ext::shared_ptr< PiecewiseConstantCorrelation > fwdCorr_
Curve state for market-model simulations
Definition: curvestate.hpp:41
Real Spread
spreads on interest rates
Definition: types.hpp:74
std::size_t Size
size of a container
Definition: types.hpp:58
Definition: any.hpp:35