VE | R Documentation |
ValuationEngine
-class constructorCreate an instance of an implementation of class
ValuationEngine
(e.g. DiscountingEngine
,
etc).
This constructor is in fact a short cut to the constructors
of the implemented classes such as DcEngine
for
DiscountingEngine
. Note that it is not possible
to instanciate class ValuationEngine
itself but only
the implementing classes extending ValuationEngine
.
VE(object) ## S4 method for signature 'character' VE(object) DcEngine(rf, ...) ## S4 method for signature 'missing' DcEngine(rf, ...) ## S4 method for signature 'RiskFactorConnector' DcEngine(rf, ...) CapmEngine(...) ## S4 method for signature 'ANY' CapmEngine(...) XfxDcEngine(...) ## S4 method for signature 'ANY' XfxDcEngine(...)
object |
If an object of class |
An object of a class extending ValuationEngine
VEM, DcEng
# example 1: create a new 'DiscountingEngine' object dc = VE("DiscountingEngine") # example 2: attach the reference to a Java 'DiscountingEngine' # object to a new R-'DiscountingEngine' object. Note, # the new object will refer to the same Java engine. dc = VE("DiscountingEngine") set(dc, what=list( RiskFactorObjectLink="YC_CHF", dc.spread=0.05)) # same.dc = VE(dc$jref) # This command doesn't work
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.