quantlib.models.shortrate.twofactormodels.g2.
G2¶
- class G2¶
Bases:
TwoFactorModelTwo-factor additive gaussian model class.
This class implements a two-additive-factor model defined by

where
and
are defined by
and
.- Attributes:
dynamicsshort-rate dynamics
Methods
params(self)set_params(self, Array params)