Dupire Local Volatility Model#
Bases: BaseModel
Dupire Local Volatility model.
Source code in src/quantfin/models/dupire_local.py
__init__(params: dict[str, Any] | None = None)
#
Initializes the Dupire Local Volatility model.
The key parameter for this model is 'vol_surface', a callable function that takes maturity (T) and strike (K) and returns the local volatility.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
params
|
dict[str, Any] | None
|
A dictionary of model parameters. If None, a default constant volatility surface is used. Defaults to None. |
None
|
Source code in src/quantfin/models/dupire_local.py
__repr__() -> str
#
Custom representation to handle the vol_surface function.