Class ConstrainedEvolver
A constrained market-model evolver: an evolver whose rates can be fixed by importance sampling, for the Fries-Joshi proxy simulation approach to Greeks.
[WorkingType]
public abstract class ConstrainedEvolver : MarketModelEvolver
- Inheritance
-
ConstrainedEvolver
- Derived
- Inherited Members
Remarks
A working type. An extension point, as in QuantLib.
Constructors
ConstrainedEvolver()
protected ConstrainedEvolver()
Methods
SetConstraintType(ReadOnlySpan<int>, ReadOnlySpan<int>)
Sets, once, the swap rates each step constrains.
public abstract void SetConstraintType(ReadOnlySpan<int> startIndexOfSwapRate, ReadOnlySpan<int> endIndexOfSwapRate)
Parameters
startIndexOfSwapRateReadOnlySpan<int>Each step's swap's first rate.
endIndexOfSwapRateReadOnlySpan<int>Each step's swap's end, after its last rate.
SetThisConstraint(ReadOnlySpan<double>, ReadOnlySpan<bool>)
Sets, before each path, the value each step constrains its swap rate to, and which steps are active.
public abstract void SetThisConstraint(ReadOnlySpan<double> rateConstraints, ReadOnlySpan<bool> isConstraintActive)
Parameters
rateConstraintsReadOnlySpan<double>Each step's constrained value.
isConstraintActiveReadOnlySpan<bool>Whether each step's constraint is active.