/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2006 Giorgio Facchinetti This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. You should have received a copy of the license along with this program; if not, please email . The license is also available online at . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ /*! \file swaptionvolcube1.hpp \brief Swaption volatility cube, fit-early-interpolate-later approach */ #ifndef quantlib_swaption_volcube_fit_early_interpolate_later_h #define quantlib_swaption_volcube_fit_early_interpolate_later_h #include #include #include #include namespace QuantLib { class SwaptionVolCube1 : public SwaptionVolatilityCube { class Cube { public: Cube() {}; Cube(const std::vector& optionDates, const std::vector& swapTenors, const std::vector