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.
# S3 method for 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.ZeroCurve
,
interpolate_dfs
,
interpolate_zeros
,
interpolate
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)#> [1] 0.3915581 0.2572096