Package org.drip.spline.stretch
Class CkSegmentSequenceBuilder
java.lang.Object
org.drip.spline.stretch.CkSegmentSequenceBuilder
- All Implemented Interfaces:
SegmentSequenceBuilder
public class CkSegmentSequenceBuilder extends java.lang.Object implements SegmentSequenceBuilder
CkSegmentSequenceBuilder implements the SegmentSequenceBuilder interface to customize segment
sequence construction. Customization is applied at several levels:
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions |
| Package | Multi-Segment Sequence Spline Stretch |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CkSegmentSequenceBuilder(SegmentResponseValueConstraint leadingSegmentResponseValueConstraint, SegmentResponseValueConstraint[] segmentResponseValueConstraintArray, StretchBestFitResponse stretchBestFitResponse, BoundarySettings boundarySettings)CkSegmentSequenceBuilder constructor -
Method Summary
Modifier and Type Method Description booleancalibSegmentSequence(int startingSegment)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
-
CkSegmentSequenceBuilder
public CkSegmentSequenceBuilder(SegmentResponseValueConstraint leadingSegmentResponseValueConstraint, SegmentResponseValueConstraint[] segmentResponseValueConstraintArray, StretchBestFitResponse stretchBestFitResponse, BoundarySettings boundarySettings) throws java.lang.ExceptionCkSegmentSequenceBuilder constructor- Parameters:
leadingSegmentResponseValueConstraint- Leading Segment Response Value ConstraintsegmentResponseValueConstraintArray- Array of Segment Response Value ConstraintsstretchBestFitResponse- Sequence Best Fit Weighted ResponseboundarySettings- 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 startingSegment)Description copied from interface:SegmentSequenceBuilderCalibrate the Segment Sequence in the Stretch- Specified by:
calibSegmentSequencein interfaceSegmentSequenceBuilder- Parameters:
startingSegment- 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
-