public class CalibratableMultiSegmentSequence extends R1ToR1 implements MultiSegmentSequence
CALIBRATE, CALIBRATE_JACOBIAN| Constructor and Description |
|---|
CalibratableMultiSegmentSequence(java.lang.String strName,
LatentStateResponseModel[] aCS,
SegmentCustomBuilderControl[] aSCBC)
CalibratableMultiSegmentSequence constructor - Construct a sequence of Basis Spline Segments
|
| Modifier and Type | Method and Description |
|---|---|
double |
bestFitDPE(StretchBestFitResponse rbfr)
Retrieve the Stretch Best Fit DPE
|
double |
calcLeftEdgeDerivative(int iOrder)
Calculate the Derivative of the requested order at the Left Edge of the Stretch
|
double |
calcRightEdgeDerivative(int iOrder)
Calculate the Derivative of the requested order at the right Edge of the Stretch
|
SegmentPredictorResponseDerivative |
calcSPRD(double dblPredictorOrdinate)
Calculate the SPRD at the specified Predictor Ordinate
|
CalibratableMultiSegmentSequence |
clipLeft(java.lang.String strName,
double dblPredictorOrdinate)
Generate a new Stretch by clipping all the Segments to the Left of the specified Predictor Ordinate.
|
CalibratableMultiSegmentSequence |
clipRight(java.lang.String strName,
double dblPredictorOrdinate)
Generate a new Stretch by clipping all the Segments to the Right of the specified Predictor Ordinate.
|
int |
containingIndex(double dblPredictorOrdinate,
boolean bIncludeLeft,
boolean bIncludeRight)
Return the Index for the Segment containing specified Predictor Ordinate
|
double |
curvatureDPE()
Retrieve the Span Curvature DPE
|
java.lang.String |
displayString()
Display the Segments
|
double |
evaluate(double dblLeftSlope)
Evaluate for the given variate
|
double |
getLeftPredictorOrdinateEdge()
Return the Left Predictor Ordinate Edge
|
double |
getRightPredictorOrdinateEdge()
Return the Right Predictor Ordinate Edge
|
boolean |
in(double dblPredictorOrdinate)
Check if the Predictor Ordinate is in the Stretch Range
|
double |
integrate(double dblBegin,
double dblEnd)
Integrate over the given range
|
boolean |
isCoMonotone(double[] adblMeasuredResponse)
Verify whether the Stretch mini-max Behavior matches the Measurement
|
boolean |
isKnot(double dblPredictorOrdinate)
Is the given Predictor Ordinate a Knot Location
|
boolean |
isLocallyMonotone()
Indicate if all the comprising Segments are Monotone
|
WengertJacobian |
jackDResponseDCalibrationInput(double dblPredictorOrdinate,
int iOrder)
Calculate the Response Derivative to the Calibration Inputs at the specified Ordinate
|
WengertJacobian |
jackDResponseDManifestMeasure(java.lang.String strManifestMeasure,
double dblPredictorOrdinate,
int iOrder)
Calculate the Response Derivative to the Manifest Measure at the specified Ordinate
|
double |
lengthDPE()
Retrieve the Span Length DPE
|
Monotonocity |
monotoneType(double dblPredictorOrdinate)
Identify the Monotone Type for the Segment underlying the given Predictor Ordinate
|
MergeSubStretchManager |
msm()
Retrieve the Merge Stretch Manager if it exists.
|
java.lang.String |
name()
Retrieve the Stretch Name
|
boolean |
resetNode(int iPredictorOrdinateIndex,
double dblResponseReset)
Reset the Predictor Ordinate Node Index with the given Response
|
boolean |
resetNode(int iPredictorOrdinateIndex,
SegmentResponseValueConstraint srvcReset)
Reset the Predictor Ordinate Node Index with the given Segment Constraint
|
double |
responseValue(double dblPredictorOrdinate)
Calculate the Response Value at the given Predictor Ordinate
|
double |
responseValueDerivative(double dblPredictorOrdinate,
int iOrder)
Calculate the Response Value Derivative at the given Predictor Ordinate for the specified order
|
SegmentCustomBuilderControl[] |
segmentBuilderControl()
Retrieve the Segment Builder Parameters
|
LatentStateResponseModel[] |
segments()
Retrieve the Stretch Segments
|
boolean |
setLeftNode(double dblStretchLeftResponse,
double dblStretchLeftResponseSlope,
double dblStretchRightResponse,
StretchBestFitResponse sbfr)
Set the Slope at the left Edge of the Stretch
|
boolean |
setup(double dblLeftStretchResponseValue,
double[] adblSegmentRightResponseValue,
StretchBestFitResponse sbfr,
BoundarySettings bs,
int iCalibrationDetail)
Set up (i.e., calibrate) the individual Segments in the Stretch to the Response Values corresponding
to each Segment Predictor right Ordinate.
|
boolean |
setup(double dblLeftStretchResponseValue,
SegmentResponseValueConstraint[] aSRVC,
StretchBestFitResponse sbfr,
BoundarySettings bs,
int iCalibrationDetail)
Set up (i.e., calibrate) the individual Segments in the Stretch to the Stretch Left Edge Response and
the Target Constraints.
|
boolean |
setup(SegmentResponseValueConstraint srvcLeading,
SegmentResponseValueConstraint[] aSRVC,
StretchBestFitResponse sbfr,
BoundarySettings bs,
int iCalibrationDetail)
Set up (i.e., calibrate) the individual Segments in the Stretch to the Stretch Left Edge and the Target
Constraints.
|
boolean |
setup(SegmentSequenceBuilder ssb,
int iCalibrationDetail)
Set up (i.e., calibrate) the individual Segments in the Stretch to the Stretch Edge, the Target
Constraints, and the custom segment sequence builder.
|
boolean |
setupHermite(SegmentPredictorResponseDerivative[] aSPRDLeft,
SegmentPredictorResponseDerivative[] aSPRDRight,
SegmentResponseValueConstraint[][] aaSRVC,
StretchBestFitResponse sbfr,
int iSetupMode)
Set up (i.e., calibrate) the individual Segment in the Stretch to the Target Segment Edge Values and
Constraints.
|
R1ToR1 |
toAU()
Convert the Segment Sequence into an AbstractUnivariate Instance
|
derivative, differential, differential, maxima, maxima, minima, minimapublic CalibratableMultiSegmentSequence(java.lang.String strName,
LatentStateResponseModel[] aCS,
SegmentCustomBuilderControl[] aSCBC)
throws java.lang.Exception
strName - Name of the StretchaCS - Array of SegmentsaSCBC - Array of Segment Builder Parametersjava.lang.Exception - Thrown if the inputs are invalidpublic java.lang.String name()
MultiSegmentSequencename in interface MultiSegmentSequencepublic LatentStateResponseModel[] segments()
MultiSegmentSequencesegments in interface MultiSegmentSequencepublic SegmentCustomBuilderControl[] segmentBuilderControl()
MultiSegmentSequencesegmentBuilderControl in interface MultiSegmentSequencepublic boolean setup(SegmentSequenceBuilder ssb, int iCalibrationDetail)
MultiSegmentSequencesetup in interface MultiSegmentSequencessb - The Segment Sequence Builder InstanceiCalibrationDetail - The Calibration Detailpublic boolean setup(SegmentResponseValueConstraint srvcLeading, SegmentResponseValueConstraint[] aSRVC, StretchBestFitResponse sbfr, BoundarySettings bs, int iCalibrationDetail)
MultiSegmentSequencesetup in interface MultiSegmentSequencesrvcLeading - Stretch Left-most Segment Response Value ConstraintaSRVC - Array of Segment Response Value Constraintssbfr - Stretch Fitness Weighted Responsebs - The Calibration Boundary ConditioniCalibrationDetail - The Calibration Detailpublic boolean setup(double dblLeftStretchResponseValue,
SegmentResponseValueConstraint[] aSRVC,
StretchBestFitResponse sbfr,
BoundarySettings bs,
int iCalibrationDetail)
MultiSegmentSequencesetup in interface MultiSegmentSequencedblLeftStretchResponseValue - Stretch Left-most Response ValueaSRVC - Array of Segment Response Value Constraintssbfr - Stretch Best Fit Weighted Response Valuesbs - The Calibration Boundary ConditioniCalibrationDetail - The Calibration Detailpublic boolean setup(double dblLeftStretchResponseValue,
double[] adblSegmentRightResponseValue,
StretchBestFitResponse sbfr,
BoundarySettings bs,
int iCalibrationDetail)
SingleSegmentSequencesetup in interface SingleSegmentSequencedblLeftStretchResponseValue - Stretch Left-most ResponseadblSegmentRightResponseValue - Array of Segment Right Edge Responsessbfr - Stretch Fitness Weighted Responsebs - The Calibration Boundary ConditioniCalibrationDetail - The Calibration Detailpublic boolean setupHermite(SegmentPredictorResponseDerivative[] aSPRDLeft, SegmentPredictorResponseDerivative[] aSPRDRight, SegmentResponseValueConstraint[][] aaSRVC, StretchBestFitResponse sbfr, int iSetupMode)
MultiSegmentSequencesetupHermite in interface MultiSegmentSequenceaSPRDLeft - Array of Left Segment Edge ValuesaSPRDRight - Array of Right Segment Edge ValuesaaSRVC - Double Array of Constraints - Outer Index corresponds to Segment Index, and the Inner
Index to Constraint Array within each Segmentsbfr - Stretch Fitness Weighted ResponseiSetupMode - Set up Mode (i.e., set up ITEP only, or fully calibrate the Stretch, or calibrate
Stretch plus compute Jacobian)public double evaluate(double dblLeftSlope)
throws java.lang.Exception
R1ToR1public double integrate(double dblBegin,
double dblEnd)
throws java.lang.Exception
R1ToR1public boolean setLeftNode(double dblStretchLeftResponse,
double dblStretchLeftResponseSlope,
double dblStretchRightResponse,
StretchBestFitResponse sbfr)
MultiSegmentSequencesetLeftNode in interface MultiSegmentSequencedblStretchLeftResponse - Response Value at the Left Edge of the StretchdblStretchLeftResponseSlope - Response Slope Value at the Left Edge of the StretchdblStretchRightResponse - Response Value at the Right Edge of the Stretchsbfr - Stretch Fitness Weighted Responsepublic double responseValue(double dblPredictorOrdinate)
throws java.lang.Exception
SingleSegmentSequenceresponseValue in interface SingleSegmentSequencedblPredictorOrdinate - Predictor Ordinatejava.lang.Exception - Thrown if the Response Value cannot be calculatedpublic double responseValueDerivative(double dblPredictorOrdinate,
int iOrder)
throws java.lang.Exception
SingleSegmentSequenceresponseValueDerivative in interface SingleSegmentSequencedblPredictorOrdinate - Predictor OrdinateiOrder - Order the Derivativejava.lang.Exception - Thrown if the Response Value Derivative cannot be calculatedpublic SegmentPredictorResponseDerivative calcSPRD(double dblPredictorOrdinate)
MultiSegmentSequencecalcSPRD in interface MultiSegmentSequencedblPredictorOrdinate - The Predictor Ordinatepublic WengertJacobian jackDResponseDCalibrationInput(double dblPredictorOrdinate, int iOrder)
SingleSegmentSequencejackDResponseDCalibrationInput in interface SingleSegmentSequencedblPredictorOrdinate - Predictor OrdinateiOrder - Order of Derivative desiredpublic WengertJacobian jackDResponseDManifestMeasure(java.lang.String strManifestMeasure, double dblPredictorOrdinate, int iOrder)
SingleSegmentSequencejackDResponseDManifestMeasure in interface SingleSegmentSequencestrManifestMeasure - Manifest Measure whose Sensitivity is soughtdblPredictorOrdinate - Predictor OrdinateiOrder - Order of Derivative desiredpublic Monotonocity monotoneType(double dblPredictorOrdinate)
SingleSegmentSequencemonotoneType in interface SingleSegmentSequencedblPredictorOrdinate - Predictor Ordinatepublic boolean isLocallyMonotone()
throws java.lang.Exception
SingleSegmentSequenceisLocallyMonotone in interface SingleSegmentSequencejava.lang.Exception - Thrown if the Segment Monotone Type could not be estimatedpublic boolean isCoMonotone(double[] adblMeasuredResponse)
throws java.lang.Exception
SingleSegmentSequenceisCoMonotone in interface SingleSegmentSequenceadblMeasuredResponse - The Array of Measured Responsesjava.lang.Exception - Thrown if the Segment Monotone Type could not be estimatedpublic boolean isKnot(double dblPredictorOrdinate)
SingleSegmentSequenceisKnot in interface SingleSegmentSequencedblPredictorOrdinate - Predictor Ordinatepublic double calcLeftEdgeDerivative(int iOrder)
throws java.lang.Exception
MultiSegmentSequencecalcLeftEdgeDerivative in interface MultiSegmentSequenceiOrder - Order of the Derivativejava.lang.Exception - Thrown if the Derivative cannot be calculatedpublic double calcRightEdgeDerivative(int iOrder)
throws java.lang.Exception
MultiSegmentSequencecalcRightEdgeDerivative in interface MultiSegmentSequenceiOrder - Order of the Derivativejava.lang.Exception - Thrown if the Derivative cannot be calculatedpublic boolean resetNode(int iPredictorOrdinateIndex,
double dblResponseReset)
SingleSegmentSequenceresetNode in interface SingleSegmentSequenceiPredictorOrdinateIndex - The Predictor Ordinate Node Index whose Response is to be resetdblResponseReset - The Response to resetpublic boolean resetNode(int iPredictorOrdinateIndex,
SegmentResponseValueConstraint srvcReset)
SingleSegmentSequenceresetNode in interface SingleSegmentSequenceiPredictorOrdinateIndex - The Predictor Ordinate Node Index whose Response is to be resetsrvcReset - The Segment Constraintpublic R1ToR1 toAU()
SingleSegmentSequencetoAU in interface SingleSegmentSequencepublic boolean in(double dblPredictorOrdinate)
throws java.lang.Exception
MultiSegmentSequencein in interface MultiSegmentSequencedblPredictorOrdinate - Predictor Ordinatejava.lang.Exception - Thrown if the Inputs are invalidpublic double getLeftPredictorOrdinateEdge()
SingleSegmentSequencegetLeftPredictorOrdinateEdge in interface SingleSegmentSequencepublic double getRightPredictorOrdinateEdge()
SingleSegmentSequencegetRightPredictorOrdinateEdge in interface SingleSegmentSequencepublic int containingIndex(double dblPredictorOrdinate,
boolean bIncludeLeft,
boolean bIncludeRight)
throws java.lang.Exception
MultiSegmentSequencecontainingIndex in interface MultiSegmentSequencedblPredictorOrdinate - Predictor OrdinatebIncludeLeft - TRUE - Less than or equal to the Left Predictor OrdinatebIncludeRight - TRUE - Less than or equal to the Right Predictor Ordinatejava.lang.Exception - Thrown if the Inputs are invalidpublic CalibratableMultiSegmentSequence clipLeft(java.lang.String strName, double dblPredictorOrdinate)
MultiSegmentSequenceclipLeft in interface MultiSegmentSequencestrName - Name of the Clipped StretchdblPredictorOrdinate - Predictor Ordinate Left of which the Clipping is to be appliedpublic CalibratableMultiSegmentSequence clipRight(java.lang.String strName, double dblPredictorOrdinate)
MultiSegmentSequenceclipRight in interface MultiSegmentSequencestrName - Name of the Clipped StretchdblPredictorOrdinate - Predictor Ordinate Right of which the Clipping is to be appliedpublic double curvatureDPE()
throws java.lang.Exception
MultiSegmentSequencecurvatureDPE in interface MultiSegmentSequencejava.lang.Exception - Thrown if the Span Curvature DPE cannot be computedpublic double lengthDPE()
throws java.lang.Exception
MultiSegmentSequencelengthDPE in interface MultiSegmentSequencejava.lang.Exception - Thrown if the Span Length DPE cannot be computedpublic double bestFitDPE(StretchBestFitResponse rbfr) throws java.lang.Exception
MultiSegmentSequencebestFitDPE in interface MultiSegmentSequencerbfr - Stretch Best Fit Weighted Response Valuesjava.lang.Exception - Thrown if the Stretch Best Fit DPE cannot be computedpublic MergeSubStretchManager msm()
MultiSegmentSequencemsm in interface MultiSegmentSequencepublic java.lang.String displayString()
MultiSegmentSequencedisplayString in interface MultiSegmentSequence