Package org.drip.spline.params
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
- 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 Inputsstatic StretchBestFitResponse
Create(int[] predictorOrdinateArray, double[] responseValueArray, double[] weightArray)
Construct the StretchBestFitResponse Instance from the given Inputsint
numPoint()
Retrieve the Number of Fitness Pointsdouble[]
predictorOrdinate()
Retrieve the Array of Predictor Ordinatesdouble
predictorOrdinate(int index)
Retrieve the Indexed Predictor Ordinate Elementdouble[]
response()
Retrieve the Array of Responsesdouble
response(int index)
Retrieve the Indexed Response ElementSegmentBestFitResponse
sizeToSegment(LatentStateInelastic latentStateInelastic)
Generate the Segment Local Best Fit Weighted Response contained within the specified Segmentdouble[]
weight()
Retrieve the Array of the Fitness Weightsdouble
weight(int index)
Retrieve the Indexed Fitness Weight ElementMethods 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 OrdinatesresponseValueArray
- Array of Response ValuesweightArray
- 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 OrdinatesresponseValueArray
- Array of Response ValuesweightArray
- 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 OrdinatesresponseValueArray
- 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.ExceptionRetrieve 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.ExceptionRetrieve 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.ExceptionRetrieve 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
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
-