Package org.drip.spline.grid
Interface Span
- All Known Implementing Classes:
AggregatedSpan
,OverlappingStretchSpan
public interface Span
Span is the interface that exposes the functionality behind the collection of Stretches that may be
overlapping or non-overlapping. It exposes the following stubs:
- Retrieve the Left/Right Span Edge
- Indicate if the specified Label is part of the Merge State at the specified Predictor Ordinate
- Compute the Response from the containing Stretches
- Add a Stretch to the Span
- Retrieve the first Stretch that contains the Predictor Ordinate
- Retrieve the Stretch by Name
- Calculate the Response Derivative to the Quote at the specified Ordinate
- Display the Span Edge Coordinates
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description boolean
addStretch(MultiSegmentSequence multiSegmentSequence)
Add a Stretch to the Spandouble
calcResponseValue(double predictorOrdinate)
Compute the Response from the containing Stretchesdouble
calcResponseValueDerivative(double predictorOrdinate, int order)
Compute the Response Value Derivative from the containing Stretchesjava.lang.String
displayString()
Display the Span Edge CoordinatesMultiSegmentSequence
getContainingStretch(double predictorOrdinate)
Retrieve the first Stretch that contains the Predictor OrdinateMultiSegmentSequence
getStretch(java.lang.String name)
Retrieve the Stretch by Nameboolean
in(double predictorOrdinate)
Check if the Predictor Ordinate is in the Stretch Rangeboolean
isMergeState(double predictorOrdinate, LatentStateLabel latentStateLabel)
Indicate if the specified Label is part of the Merge State at the specified Predictor OrdinateWengertJacobian
jackDResponseDManifestMeasure(java.lang.String manifestMeasure, double predictorOrdinate, int order)
Calculate the Response Derivative to the Manifest Measure at the specified Ordinatedouble
left()
Retrieve the Left Span Edgedouble
right()
Retrieve the Right Span Edge
-
Method Details
-
left
double left() throws java.lang.ExceptionRetrieve the Left Span Edge- Returns:
- The Left Span Edge
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
right
double right() throws java.lang.ExceptionRetrieve the Right Span Edge- Returns:
- The Left Span Edge
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
isMergeState
Indicate if the specified Label is part of the Merge State at the specified Predictor Ordinate- Parameters:
predictorOrdinate
- The Predictor OrdinatelatentStateLabel
- Merge State Label- Returns:
- TRUE - The specified Label is part of the Merge State at the specified Predictor Ordinate
-
calcResponseValue
double calcResponseValue(double predictorOrdinate) throws java.lang.ExceptionCompute the Response from the containing Stretches- Parameters:
predictorOrdinate
- The Predictor Ordinate- Returns:
- The Response
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
calcResponseValueDerivative
double calcResponseValueDerivative(double predictorOrdinate, int order) throws java.lang.ExceptionCompute the Response Value Derivative from the containing Stretches- Parameters:
predictorOrdinate
- The Predictor Ordinateorder
- Order of the Derivative to be calculated- Returns:
- The Response Value Derivative
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
addStretch
Add a Stretch to the Span- Parameters:
multiSegmentSequence
- Stretch to be added- Returns:
- TRUE - Stretch added successfully
-
getContainingStretch
Retrieve the first Stretch that contains the Predictor Ordinate- Parameters:
predictorOrdinate
- The Predictor Ordinate- Returns:
- The containing Stretch
-
getStretch
Retrieve the Stretch by Name- Parameters:
name
- The Stretch Name- Returns:
- The Stretch
-
jackDResponseDManifestMeasure
WengertJacobian jackDResponseDManifestMeasure(java.lang.String manifestMeasure, double predictorOrdinate, int order)Calculate the Response Derivative to the Manifest Measure at the specified Ordinate- Parameters:
manifestMeasure
- Manifest Measure whose Sensitivity is soughtpredictorOrdinate
- Predictor Ordinateorder
- Order of Derivative desired- Returns:
- Jacobian of the Response Derivative to the Manifest Measure at the Ordinate
-
in
boolean in(double predictorOrdinate) throws java.lang.ExceptionCheck if the Predictor Ordinate is in the Stretch Range- Parameters:
predictorOrdinate
- Predictor Ordinate- Returns:
- TRUE - Predictor Ordinate is in the Range
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
displayString
java.lang.String displayString()Display the Span Edge Coordinates- Returns:
- The Edge Coordinates String
-