Class StretchBestFitResponse

java.lang.Object
org.drip.spline.params.StretchBestFitResponse

public class StretchBestFitResponse
extends java.lang.Object
StretchBestFitResponse implements basis per-Stretch Fitness Penalty Parameter Set. Currently it contains the Best Fit Penalty Weight Grid Matrix and the corresponding Local Predictor Ordinate/Response Match Pair. StretchBestFitResponse exports the following methods:
  • Construct the StretchBestFitResponse Instance from the given Inputs
  • Construct the StretchBestFitResponse Instance from the given Predictor Ordinate/Response Pairs, using Uniform Weightings
  • Retrieve the Array of the Fitness Weights
  • Retrieve the Indexed Fitness Weight Element
  • Retrieve the Array of Predictor Ordinates
  • Retrieve the Indexed Predictor Ordinate Element
  • Retrieve the Array of Responses
  • Retrieve the Indexed Response Element
  • Retrieve the Number of Fitness Points
  • Generate the Segment Local Best Fit Weighted Response contained within the specified Segment

Module Product Core Module
Library Fixed Income Analytics
Project Basis Splines and Linear Compounders across a Broad Family of Spline Basis Functions
Package Spline Segment Construction Control Parameters

Author:
Lakshmi Krishnamurthy
  • Method Summary

    Modifier and Type Method Description
    static StretchBestFitResponse Create​(double[] predictorOrdinateArray, double[] responseValueArray)
    Construct the StretchBestFitResponse Instance from the given Predictor Ordinate/Response Pairs, using Uniform Weightings.
    static StretchBestFitResponse Create​(double[] predictorOrdinateArray, double[] responseValueArray, double[] weightArray)
    Construct the StretchBestFitResponse Instance from the given Inputs
    static StretchBestFitResponse Create​(int[] predictorOrdinateArray, double[] responseValueArray, double[] weightArray)
    Construct the StretchBestFitResponse Instance from the given Inputs
    int numPoint()
    Retrieve the Number of Fitness Points
    double[] predictorOrdinate()
    Retrieve the Array of Predictor Ordinates
    double predictorOrdinate​(int index)
    Retrieve the Indexed Predictor Ordinate Element
    double[] response()
    Retrieve the Array of Responses
    double response​(int index)
    Retrieve the Indexed Response Element
    SegmentBestFitResponse sizeToSegment​(LatentStateInelastic latentStateInelastic)
    Generate the Segment Local Best Fit Weighted Response contained within the specified Segment
    double[] weight()
    Retrieve the Array of the Fitness Weights
    double weight​(int index)
    Retrieve the Indexed Fitness Weight Element

    Methods inherited from class java.lang.Object

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

    • Create

      public static final StretchBestFitResponse Create​(double[] predictorOrdinateArray, double[] responseValueArray, double[] weightArray)
      Construct the StretchBestFitResponse Instance from the given Inputs
      Parameters:
      predictorOrdinateArray - Array of Predictor Ordinates
      responseValueArray - Array of Response Values
      weightArray - Array of Weights
      Returns:
      Instance of StretchBestFitResponse
    • Create

      public static final StretchBestFitResponse Create​(int[] predictorOrdinateArray, double[] responseValueArray, double[] weightArray)
      Construct the StretchBestFitResponse Instance from the given Inputs
      Parameters:
      predictorOrdinateArray - Array of Predictor Ordinates
      responseValueArray - Array of Response Values
      weightArray - Array of Weights
      Returns:
      Instance of StretchBestFitResponse
    • Create

      public static final StretchBestFitResponse Create​(double[] predictorOrdinateArray, double[] responseValueArray)
      Construct the StretchBestFitResponse Instance from the given Predictor Ordinate/Response Pairs, using Uniform Weightings.
      Parameters:
      predictorOrdinateArray - Array of Predictor Ordinates
      responseValueArray - Array of Response Values
      Returns:
      Instance of StretchBestFitResponse
    • weight

      public double[] weight()
      Retrieve the Array of the Fitness Weights
      Returns:
      The Array of the Fitness Weights
    • weight

      public double weight​(int index) throws java.lang.Exception
      Retrieve the Indexed Fitness Weight Element
      Parameters:
      index - The Element Index
      Returns:
      The Indexed Fitness Weight Element
      Throws:
      java.lang.Exception - Thrown if the Index is Invalid
    • predictorOrdinate

      public double[] predictorOrdinate()
      Retrieve the Array of Predictor Ordinates
      Returns:
      The Array of Predictor Ordinates
    • predictorOrdinate

      public double predictorOrdinate​(int index) throws java.lang.Exception
      Retrieve the Indexed Predictor Ordinate Element
      Parameters:
      index - The Element Index
      Returns:
      The Indexed Predictor Ordinate Element
      Throws:
      java.lang.Exception - Thrown if the Index is Invalid
    • response

      public double[] response()
      Retrieve the Array of Responses
      Returns:
      The Array of Responses
    • response

      public double response​(int index) throws java.lang.Exception
      Retrieve the Indexed Response Element
      Parameters:
      index - The Element Index
      Returns:
      The Indexed Response Element
      Throws:
      java.lang.Exception - Thrown if the Index is Invalid
    • numPoint

      public int numPoint()
      Retrieve the Number of Fitness Points
      Returns:
      The Number of Fitness Points
    • sizeToSegment

      public SegmentBestFitResponse sizeToSegment​(LatentStateInelastic latentStateInelastic)
      Generate the Segment Local Best Fit Weighted Response contained within the specified Segment
      Parameters:
      latentStateInelastic - The Inelastics Instance to be used for the Localization
      Returns:
      The Segment Local Best Fit Weighted Response