Class CubicRationalRightRaw

java.lang.Object

public class CubicRationalRightRaw
extends TensionBasisHat
CubicRationalRightRaw implements the TensionBasisHat interface in accordance with the raw right cubic rational hat basis function laid out in the basic framework outlined in Koch and Lyche (1989), Koch and Lyche (1993), and Kvasov (2000) Papers.
Module Product Core Module
Library Fixed Income Analytics
Project Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions
Package de Boor Rational/Exponential/Tension B-Splines

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    CubicRationalRightRaw​(double leftPredictorOrdinate, double rightPredictorOrdinate, java.lang.String shapeControlType, double tension)
    CubicRationalRightRaw constructor
  • Method Summary

    Modifier and Type Method Description
    double derivative​(double predictorOrdinate, int order)
    Calculate the derivative as a double
    double evaluate​(double predictorOrdinate)
    Evaluate for the given variate
    double integrate​(double begin, double end)
    Integrate over the given range
    double normalizer()
    Compute the Normalizer

    Methods inherited from class org.drip.spline.bspline.TensionBasisHat

    in, left, right, tension

    Methods inherited from class org.drip.function.definition.R1ToR1

    antiDerivative, conditionNumber, differential, differential, maxima, maxima, minima, minima, poleResidue

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CubicRationalRightRaw

      public CubicRationalRightRaw​(double leftPredictorOrdinate, double rightPredictorOrdinate, java.lang.String shapeControlType, double tension) throws java.lang.Exception
      CubicRationalRightRaw constructor
      Parameters:
      leftPredictorOrdinate - The Left Predictor Ordinate
      rightPredictorOrdinate - The Right Predictor Ordinate
      shapeControlType - Type of the Shape Controller to be used - NONE, LINEAR/QUADRATIC Rational
      tension - Tension of the Tension Hat Function
      Throws:
      java.lang.Exception - Thrown if the inputs are invalid
  • Method Details

    • evaluate

      public double evaluate​(double predictorOrdinate) throws java.lang.Exception
      Description copied from class: R1ToR1
      Evaluate for the given variate
      Specified by:
      evaluate in class R1ToR1
      Parameters:
      predictorOrdinate - Variate
      Returns:
      Returns the calculated value
      Throws:
      java.lang.Exception - Thrown if evaluation cannot be done
    • derivative

      public double derivative​(double predictorOrdinate, int order) throws java.lang.Exception
      Description copied from class: R1ToR1
      Calculate the derivative as a double
      Overrides:
      derivative in class R1ToR1
      Parameters:
      predictorOrdinate - Variate at which the derivative is to be calculated
      order - Order of the derivative to be computed
      Returns:
      The Derivative
      Throws:
      java.lang.Exception - Thrown if Inputs are Invalid
    • integrate

      public double integrate​(double begin, double end) throws java.lang.Exception
      Description copied from class: R1ToR1
      Integrate over the given range
      Overrides:
      integrate in class R1ToR1
      Parameters:
      begin - Range Begin
      end - Range End
      Returns:
      The Integrated Value
      Throws:
      java.lang.Exception - Thrown if evaluation cannot be done
    • normalizer

      public double normalizer()
      Description copied from class: TensionBasisHat
      Compute the Normalizer
      Specified by:
      normalizer in class TensionBasisHat
      Returns:
      The Normalizer