Learn R Programming

valuer (version 1.1.2)

payoff_guarantee: Generic guarantee payoff class

Description

Class providing an interface for guarantee payoff objects. This class shouldn't be instantiated but used as base class for more specialized implementations such as a roll-up or ratchet payoff classes.

Usage

payoff_guarantee

Arguments

Value

Object of R6Class

Format

R6Class object.

Methods

new (public)

Initialize method. The argument is a non negative scalar with the premium.

set_premium (public)

Stores the premium in a private field. The argument is a non negative scalar

get_premium (public)

Returns the premium as non negative scalar

get_payoff (public)

Gets a zero payoff in this base class.The arguments are a numeric vector with the amounts and a vector of timeDate objects to calculate the payoff