Package org.drip.spline.segment
Class LatentStateInelastic
java.lang.Object
org.drip.spline.segment.LatentStateInelastic
- All Implemented Interfaces:
java.lang.Comparable<LatentStateInelastic>
- Direct Known Subclasses:
LatentStateResponseModel
public class LatentStateInelastic extends java.lang.Object implements java.lang.Comparable<LatentStateInelastic>
LatentStateInelastic contains the spline segment in-elastic fields - in this case the start/end
ranges. It exports the following functions:
- LatentStateInelastic constructor
- Retrieve the Segment Left Predictor Ordinate
- Retrieve the Segment Right Predictor Ordinate
- Find out if the Predictor Ordinate is inside the segment - inclusive of left/right
- Get the Width of the Predictor Ordinate in this Segment
- Transform the Predictor Ordinate to the Local Segment Predictor Ordinate
- Transform the Local Predictor Ordinate to the Segment Ordinate
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions |
| Package | Flexure Penalizing Best Fit Segment |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description LatentStateInelastic(double predictorOrdinateLeft, double predictorOrdinateRight)LatentStateInelastic constructor -
Method Summary
Modifier and Type Method Description intcompareTo(LatentStateInelastic other)doubledelocalize(double localPredictorOrdinate)Transform the Local Predictor Ordinate to the Segment OrdinateinthashCode()booleanin(double predictorOrdinate)Find out if the Predictor Ordinate is inside the segment - inclusive of left/right.doubleleft()Retrieve the Segment Left Predictor Ordinatedoublelocalize(double predictorOrdinate)Transform the Predictor Ordinate to the Local Segment Predictor Ordinatedoubleright()Retrieve the Segment Right Predictor Ordinatedoublewidth()Get the Width of the Predictor Ordinate in this SegmentMethods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LatentStateInelastic
public LatentStateInelastic(double predictorOrdinateLeft, double predictorOrdinateRight) throws java.lang.ExceptionLatentStateInelastic constructor- Parameters:
predictorOrdinateLeft- Segment Predictor Ordinate LeftpredictorOrdinateRight- Segment Predictor Ordinate Right- Throws:
java.lang.Exception- Thrown if inputs are invalid
-
-
Method Details
-
left
public double left()Retrieve the Segment Left Predictor Ordinate- Returns:
- Segment Left Predictor Ordinate
-
right
public double right()Retrieve the Segment Right Predictor Ordinate- Returns:
- Segment Right Predictor Ordinate
-
in
public boolean in(double predictorOrdinate) throws java.lang.ExceptionFind out if the Predictor Ordinate is inside the segment - inclusive of left/right.- Parameters:
predictorOrdinate- Predictor Ordinate- Returns:
- TRUE - Predictor Ordinate is inside the segment
- Throws:
java.lang.Exception- Thrown if the input is invalid
-
width
public double width()Get the Width of the Predictor Ordinate in this Segment- Returns:
- Segment Width
-
localize
public double localize(double predictorOrdinate) throws java.lang.ExceptionTransform the Predictor Ordinate to the Local Segment Predictor Ordinate- Parameters:
predictorOrdinate- The Global Predictor Ordinate- Returns:
- Local Segment Predictor Ordinate
- Throws:
java.lang.Exception- Thrown if the input is invalid
-
delocalize
public double delocalize(double localPredictorOrdinate) throws java.lang.ExceptionTransform the Local Predictor Ordinate to the Segment Ordinate- Parameters:
localPredictorOrdinate- The Local Segment Predictor Ordinate- Returns:
- The Segment Ordinate
- Throws:
java.lang.Exception- Thrown if the input is invalid
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<LatentStateInelastic>
-