Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Vasicek ¶
type Vasicek struct { // R0 R0 float64 // Rbar Rbar float64 // Gamma Gamma float64 // Sigma is the standard deviation of the first difference of the short term interest rate Sigma float64 // T is the maturity (up to which to calculate the interes rates) T float64 // N represents number of steps N int // Rng is the random number generator (NormFloat64) Rng *rand.Rand // Payoff returns the discounted payoff for the given simulated rates Payoff func([]float64) float64 }
Vasicek implements the basic Vasicek interest rate model
func New ¶
func New(ts term.Structure, sigma, t float64, n int, payoff func([]float64) float64) (*Vasicek, error)
New creates a new Vasicek model
func (*Vasicek) Measurement ¶
Measurement implements the model interface for the Monte Carlo engine
Click to show internal directories.
Click to hide internal directories.