R/fCreateKernelMatrix.R

Defines functions fCreateKernelMatrix

Documented in fCreateKernelMatrix

#' Create the matrix of kernel functions
#' 
#' Creates a J x J matrix [ w(u_i,u_j) ] where J is the number of cashflow times in the calibration set
#' 
#' @param times a vector of cashflow times
#' @param fKernel a kernel to apply (a function of times x times returning a matrix )
#' 
fCreateKernelMatrix <- function( times, fKernel ) {
	
	W <- fKernel( times, times )
	
	return( W )
	
}

Try the SmithWilsonYieldCurve package in your browser

Any scripts or data that you put into this service are public.

SmithWilsonYieldCurve documentation built on May 2, 2019, 2:16 a.m.