Class SegmentMulticBasisFunction

java.lang.Object
org.drip.function.definition.R1ToR1
org.drip.spline.bspline.SegmentBasisFunction
org.drip.spline.bspline.SegmentMulticBasisFunction

public class SegmentMulticBasisFunction
extends SegmentBasisFunction
SegmentMulticBasisFunction implements the local quadratic B Spline that envelopes the predictor ordinates, and the corresponding set of ordinates/basis functions. SegmentMulticBasisFunction uses the left/right SegmentBasisFunction instances to achieve its implementation goals.
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 Details

    • SegmentMulticBasisFunction

      public SegmentMulticBasisFunction​(SegmentBasisFunction leftSegmentBasisFunction, SegmentBasisFunction rightSegmentBasisFunction) throws java.lang.Exception
      SegmentMulticBasisFunction constructor
      Parameters:
      leftSegmentBasisFunction - Left Ordered Envelope Spline Function
      rightSegmentBasisFunction - Right Ordered Envelope Spline Function
      Throws:
      java.lang.Exception - Thrown if 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
    • 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() throws java.lang.Exception
      Description copied from class: SegmentBasisFunction
      Compute the complete Envelope Integrand - this will serve as the Envelope Normalizer.
      Specified by:
      normalizer in class SegmentBasisFunction
      Returns:
      The Complete Envelope Integrand.
      Throws:
      java.lang.Exception - Thrown if the Complete Envelope Integrand cannot be calculated.
    • normalizedCumulative

      public double normalizedCumulative​(double predictorOrdinate) throws java.lang.Exception
      Description copied from class: SegmentBasisFunction
      Evaluate the Cumulative Normalized Integrand up to the given ordinate
      Specified by:
      normalizedCumulative in class SegmentBasisFunction
      Parameters:
      predictorOrdinate - The Predictor Ordinate
      Returns:
      The Cumulative Normalized Integrand up to the given ordinate
      Throws:
      java.lang.Exception - Thrown if input is invalid