Prepayment Library - Sample Programs
Summary
Use of the AFT Prepayment Library is demonstrated through the enclosed sample applications. While not exhaustive in their use of the library, the programs show the most frequently used structures and functions in a realistic manner.
This page contains information about the prepayment section of the library. Other sample programs illustrate use of the bond and MBS/OAS related structures, constants and functions.
Program
Lang
Description
C
Basic sample program illustrating the call to the primary prepay function,
EspPrep_PrepayModelMThread
C
More extensive sample program illustrating the call to the primary prepay function,
as well as implementation of ARMs, whole loans, prepayment penalties, dynamic adjustment and fine tuning
Basic Use
The basic steps for using the library are as follows:
- Supply interest rate projections by populating input data structure EspPrepayProjStruct.
- Describe the mortgage collateral by populating input data structure EspMortgageCollatDescStruct.
- Invoke the prepayment model by calling the function EspPrep_PrepayModelMThread.
Notes
The following rules apply to using all of the AFT library functions and sample programs.
- The user is responsible for allocating sufficient memory for each of the input structures.
- The user is responsible for allocating sufficient memory for the output array.
- The size of the output array of SMMs must be equal to the remaining term of the mortgage or pool.