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 SummaryModifier and Type Method Description booleanaddStretch(MultiSegmentSequence multiSegmentSequence)Add a Stretch to the SpandoublecalcResponseValue(double predictorOrdinate)Compute the Response from the containing StretchesdoublecalcResponseValueDerivative(double predictorOrdinate, int order)Compute the Response Value Derivative from the containing Stretchesjava.lang.StringdisplayString()Display the Span Edge CoordinatesMultiSegmentSequencegetContainingStretch(double predictorOrdinate)Retrieve the first Stretch that contains the Predictor OrdinateMultiSegmentSequencegetStretch(java.lang.String name)Retrieve the Stretch by Namebooleanin(double predictorOrdinate)Check if the Predictor Ordinate is in the Stretch RangebooleanisMergeState(double predictorOrdinate, LatentStateLabel latentStateLabel)Indicate if the specified Label is part of the Merge State at the specified Predictor OrdinateWengertJacobianjackDResponseDManifestMeasure(java.lang.String manifestMeasure, double predictorOrdinate, int order)Calculate the Response Derivative to the Manifest Measure at the specified Ordinatedoubleleft()Retrieve the Left Span Edgedoubleright()Retrieve the Right Span Edge
- 
Method Details- 
leftdouble left() throws java.lang.ExceptionRetrieve the Left Span Edge- Returns:
- The Left Span Edge
- Throws:
- java.lang.Exception- Thrown if the Inputs are invalid
 
- 
rightdouble right() throws java.lang.ExceptionRetrieve the Right Span Edge- Returns:
- The Left Span Edge
- Throws:
- java.lang.Exception- Thrown if the Inputs are invalid
 
- 
isMergeStateIndicate if the specified Label is part of the Merge State at the specified Predictor Ordinate- Parameters:
- predictorOrdinate- The Predictor Ordinate
- latentStateLabel- Merge State Label
- Returns:
- TRUE - The specified Label is part of the Merge State at the specified Predictor Ordinate
 
- 
calcResponseValuedouble 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
 
- 
calcResponseValueDerivativedouble calcResponseValueDerivative(double predictorOrdinate, int order) throws java.lang.ExceptionCompute the Response Value Derivative from the containing Stretches- Parameters:
- predictorOrdinate- The Predictor Ordinate
- order- Order of the Derivative to be calculated
- Returns:
- The Response Value Derivative
- Throws:
- java.lang.Exception- Thrown if the Inputs are invalid
 
- 
addStretchAdd a Stretch to the Span- Parameters:
- multiSegmentSequence- Stretch to be added
- Returns:
- TRUE - Stretch added successfully
 
- 
getContainingStretchRetrieve the first Stretch that contains the Predictor Ordinate- Parameters:
- predictorOrdinate- The Predictor Ordinate
- Returns:
- The containing Stretch
 
- 
getStretchRetrieve the Stretch by Name- Parameters:
- name- The Stretch Name
- Returns:
- The Stretch
 
- 
jackDResponseDManifestMeasureWengertJacobian 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 sought
- predictorOrdinate- Predictor Ordinate
- order- Order of Derivative desired
- Returns:
- Jacobian of the Response Derivative to the Manifest Measure at the Ordinate
 
- 
inboolean 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
 
- 
displayStringjava.lang.String displayString()Display the Span Edge Coordinates- Returns:
- The Edge Coordinates String
 
 
-