Package org.drip.state.inference
Class LatentStateSequenceBuilder
java.lang.Object
org.drip.state.inference.LatentStateSequenceBuilder
- All Implemented Interfaces:
SegmentSequenceBuilder
public class LatentStateSequenceBuilder extends java.lang.Object implements SegmentSequenceBuilder
LatentStateSequenceBuilder holds the logic behind building the bootstrap segments contained in the
given Stretch.
It extends SegmentSequenceBuilder by implementing/customizing the calibration of the starting as
well as the subsequent segments.
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Latent State Stretch Sequence Inference |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description LatentStateSequenceBuilder(double epochResponse, LatentStateStretchSpec latentStateStretchSpecification, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, Span span, StretchBestFitResponse stretchBestFitResponse, CaseInsensitiveHashMap<PreceedingManifestSensitivityControl> preceedingManifestSensitivityControlMap, StretchBestFitResponse stretchBestFitResponseQuoteSensitivity, BoundarySettings boundarySettings)LatentStateSequenceBuilder constructor -
Method Summary
Modifier and Type Method Description booleancalibSegmentSequence(int startingSegmentIndex)Calibrate the Segment Sequence in the StretchbooleancalibStartingSegment(double leftSlope)Calibrate the Starting Segment using the LeftSlopeBoundarySettingsgetCalibrationBoundaryCondition()Retrieve the Calibration Boundary ConditionbooleanmanifestMeasureSensitivity(double leftSlopeSensitivity)Compute the Stretch Manifest Measure Sensitivity SequencebooleansetStretch(MultiSegmentSequence multiSegmentSequence)Set the Stretch whose Segments are to be calibratedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LatentStateSequenceBuilder
public LatentStateSequenceBuilder(double epochResponse, LatentStateStretchSpec latentStateStretchSpecification, ValuationParams valuationParams, CreditPricerParams creditPricerParams, CurveSurfaceQuoteContainer curveSurfaceQuoteContainer, ValuationCustomizationParams valuationCustomizationParams, Span span, StretchBestFitResponse stretchBestFitResponse, CaseInsensitiveHashMap<PreceedingManifestSensitivityControl> preceedingManifestSensitivityControlMap, StretchBestFitResponse stretchBestFitResponseQuoteSensitivity, BoundarySettings boundarySettings) throws java.lang.ExceptionLatentStateSequenceBuilder constructor- Parameters:
epochResponse- Segment Sequence Left-most Response ValuelatentStateStretchSpecification- The Latent State Stretch SpecificationvaluationParams- Valuation ParametercreditPricerParams- Credit Pricer ParametercurveSurfaceQuoteContainer- The Market Parameter SetvaluationCustomizationParams- Valuation Customization Parametersspan- The Containing Span this Stretch will become a part ofstretchBestFitResponse- Stretch Fitness Weighted ResponsepreceedingManifestSensitivityControlMap- Map of Preceeding Manifest Sensitivity Control ParametersstretchBestFitResponseQuoteSensitivity- Stretch Fitness Weighted Response Quote SensitivityboundarySettings- The Calibration Boundary Condition- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
-
Method Details
-
setStretch
Description copied from interface:SegmentSequenceBuilderSet the Stretch whose Segments are to be calibrated- Specified by:
setStretchin interfaceSegmentSequenceBuilder- Parameters:
multiSegmentSequence- The Stretch that needs to be calibrated- Returns:
- TRUE - Stretch successfully set
-
getCalibrationBoundaryCondition
Description copied from interface:SegmentSequenceBuilderRetrieve the Calibration Boundary Condition- Specified by:
getCalibrationBoundaryConditionin interfaceSegmentSequenceBuilder- Returns:
- The Calibration Boundary Condition
-
calibStartingSegment
public boolean calibStartingSegment(double leftSlope)Description copied from interface:SegmentSequenceBuilderCalibrate the Starting Segment using the LeftSlope- Specified by:
calibStartingSegmentin interfaceSegmentSequenceBuilder- Parameters:
leftSlope- The Slope- Returns:
- TRUE - The Segment was successfully set up.
-
calibSegmentSequence
public boolean calibSegmentSequence(int startingSegmentIndex)Description copied from interface:SegmentSequenceBuilderCalibrate the Segment Sequence in the Stretch- Specified by:
calibSegmentSequencein interfaceSegmentSequenceBuilder- Parameters:
startingSegmentIndex- The Starting Segment in the Sequence- Returns:
- TRUE - The Segment Sequence successfully calibrated
-
manifestMeasureSensitivity
public boolean manifestMeasureSensitivity(double leftSlopeSensitivity)Description copied from interface:SegmentSequenceBuilderCompute the Stretch Manifest Measure Sensitivity Sequence- Specified by:
manifestMeasureSensitivityin interfaceSegmentSequenceBuilder- Parameters:
leftSlopeSensitivity- The Leading Segment Left Slope Sensitivity- Returns:
- TRUE - The Stretch Manifest Measure Sensitivity Sequence successfully computed
-