Description Usage Arguments Value See Also Examples
View source: R/interpolation-class.R
This method is used to interpolate a VolSurface
object at multiple points of
the plane. The interpolation depends on the type of the surface, if the vols are
given by strikes, delta, moneyness.
1 2 | ## S3 method for class 'VolSurface'
interpolate(x, at, ...)
|
x |
object of class |
at |
indicates the coordinates at which the interpolation is performed.
|
... |
unused in this model. |
numeric
vector with length equal to the number of rows of at
.
Other interpolate functions: interpolate.CreditCurve
,
interpolate.ZeroCurve
,
interpolate_dfs.CreditCurve
,
interpolate_zeros.CreditCurve
,
interpolate
1 2 3 4 5 6 | x <- build_vol_surface()
at <- tibble::tibble(
maturity = c(as.Date("2020-03-31"), as.Date("2021-03-31")),
smile = c(40, 80)
)
interpolate(x, at)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.