Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

LiborFunctional.h

Go to the documentation of this file.
00001 /* WARANTY NOTICE AND COPYRIGHT
00002 This program is free software; you can redistribute it and/or
00003 modify it under the terms of the GNU General Public License
00004 as published by the Free Software Foundation; either version 2
00005 of the License, or (at your option) any later version.
00006 
00007 This program is distributed in the hope that it will be useful,
00008 but WITHOUT ANY WARRANTY; without even the implied warranty of
00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010 GNU General Public License for more details.
00011 
00012 You should have received a copy of the GNU General Public License
00013 along with this program; if not, write to the Free Software
00014 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00015 
00016 Copyright (C) Michael J. Meyer
00017 
00018 matmjm@mindspring.com
00019 spyqqqdia@yahoo.com
00020 
00021 */
00022 
00023 
00024 #ifndef martingale_liborfunctional_h    
00025 #define martingale_liborfunctional_h
00026 
00027 #include "TypedefsMacros.h"
00028 #include "Array.h"
00029 
00030 
00031 MTGL_BEGIN_NAMESPACE(Martingale)
00032 
00033 // dependencies
00034 class BondCall;
00035 
00036 
00060 namespace LiborFunctional {
00061         
00065         inline Real X(int j, const RealArray1D& H){ return (H[j]-H[j+1])/H[j+1]; }
00066         
00071         Real H_pq(int p, int q, const RealArray1D& H, Real delta);      
00072                 
00077         Real swapRate(int p, int q, const RealArray1D& H, Real delta);
00078                 
00079                 
00086     Real forwardSwaptionPayoff
00087         (int p, int q, Real kappa, const RealArray1D& H, Real delta);
00088         
00089         
00099     Real forwardCapletPayoff
00100         (int i, Real kappa,const RealArray1D& H, Real delta);
00101         
00102         
00108     Real forwardBondCallPayoff(BondCall* bc, const RealArray1D& H);
00109 
00110 };
00111 
00112 
00113 
00114 MTGL_END_NAMESPACE(Martingale)
00115 
00116 #endif
00117 
00118 

Generated on Mon Sep 22 02:16:32 2003 for Libor-Library by doxygen1.3-rc3