Properties
_antitheticVariate
_antitheticVariate: boolean
_arguments
_arguments
: Arguments = new BarrierOptionEngine.Arguments()
Protected _brownianBridge
_brownianBridge: boolean
_controlVariate
_controlVariate: boolean
Protected _isBiased
_isBiased: boolean
_isDisposed
_isDisposed: boolean = false
Protected _maxSamples
Protected _process
Protected _requiredSamples
Protected _requiredTolerance
_results
_results
: Results = new BarrierOptionEngine.Results()
Protected _seed
Protected _timeSteps
Protected _timeStepsPerYear
calculate1
calculate1
: (requiredTolerance
: Real, requiredSamples
: Size, maxSamples
: Size) => void
Type declaration
-
- (requiredTolerance: Real, requiredSamples: Size, maxSamples: Size): void
-
Parameters
-
requiredTolerance: Real
-
requiredSamples: Size
-
maxSamples: Size
Returns void
controlVariateValue
control
VariateValue: () => Real
deepUpdate
deepUpdate: () => void
dispose
dispose: () => void
errorEstimate
error
Estimate: () => Real
isDisposed
isDisposed: boolean
mcsInit
mcs
Init: (antitheticVariate: boolean, controlVariate: boolean) => McSimulation
Type declaration
-
- (antitheticVariate: boolean, controlVariate: boolean): McSimulation
-
Parameters
-
antitheticVariate: boolean
-
controlVariate: boolean
notifyObservers
notifyObservers: () => void
registerWithObservables
register
WithObservables: (o: Observer) => void
triggered
triggered
: (underlying
: Real) => boolean
Type declaration
-
- (underlying: Real): boolean
-
Parameters
Returns boolean
unregisterObserver
unregister
Observer: (o: Observer) => void
unregisterWithAll
unregisterWithAll: () => void
update
update: () => void
valueWithSamples
value
WithSamples: (samples: Size) => Real
Pricing engine for barrier options using Monte Carlo simulation Uses the Brownian-bridge correction for the barrier found in
Going to Extremes: Correcting Simulation Bias in Exotic Option Valuation - D.R. Beaglehole, P.H. Dybvig and G. Zhou Financial Analysts Journal; Jan/Feb 1997; 53, 1. pg. 62-68
Simulating path-dependent options: A new approach - M. El Babsiri and G. Noel Journal of Derivatives; Winter 1998; 6, 2; pg. 65-83
test the correctness of the returned value is tested by reproducing results available in literature.