Package org.drip.spline.params
Class SegmentPredictorResponseDerivative
java.lang.Object
org.drip.spline.params.SegmentPredictorResponseDerivative
public class SegmentPredictorResponseDerivative
extends java.lang.Object
SegmentPredictorResponseDerivative contains the segment local parameters used for the segment
calibration. It holds the edge Y value and the derivatives. It exposes the following functions:
- Aggregate the 2 Predictor Ordinate Response Derivatives by applying the Cardinal Tension Weight
- SegmentPredictorResponseDerivative constructor
- Retrieve the Response Value
- Retrieve the DResponseDPredictorOrdinate Array
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description SegmentPredictorResponseDerivative(double responseValue, double[] dResponseDPredictorOrdinateArray)
SegmentPredictorResponseDerivative constructor -
Method Summary
Modifier and Type Method Description static SegmentPredictorResponseDerivative
CardinalEdgeAggregate(SegmentPredictorResponseDerivative segmentPredictorResponseDerivativeA, SegmentPredictorResponseDerivative segmentPredictorResponseDerivativeB, double cardinalTension)
Aggregate the 2 Predictor Ordinate Response Derivatives by applying the Cardinal Tension Weightdouble[]
getDResponseDPredictorOrdinate()
Retrieve the DResponseDPredictorOrdinate Arraydouble
responseValue()
Retrieve the Response ValueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SegmentPredictorResponseDerivative
public SegmentPredictorResponseDerivative(double responseValue, double[] dResponseDPredictorOrdinateArray) throws java.lang.ExceptionSegmentPredictorResponseDerivative constructor- Parameters:
responseValue
- Edge Response ValuedResponseDPredictorOrdinateArray
- Array of ordered Edge Derivatives- Throws:
java.lang.Exception
- Thrown if the inputs are invalid
-
-
Method Details
-
CardinalEdgeAggregate
public static final SegmentPredictorResponseDerivative CardinalEdgeAggregate(SegmentPredictorResponseDerivative segmentPredictorResponseDerivativeA, SegmentPredictorResponseDerivative segmentPredictorResponseDerivativeB, double cardinalTension)Aggregate the 2 Predictor Ordinate Response Derivatives by applying the Cardinal Tension Weight- Parameters:
segmentPredictorResponseDerivativeA
- Predictor Ordinate Response Derivative AsegmentPredictorResponseDerivativeB
- Predictor Ordinate Response Derivative BcardinalTension
- Cardinal Tension- Returns:
- The Aggregated Predictor Ordinate Response Derivatives
-
responseValue
public double responseValue()Retrieve the Response Value- Returns:
- The Response Value
-
getDResponseDPredictorOrdinate
public double[] getDResponseDPredictorOrdinate()Retrieve the DResponseDPredictorOrdinate Array- Returns:
- DResponseDPredictorOrdinate Array
-