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, minima
public 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()
MultiSegmentSequence
name
in interface MultiSegmentSequence
public LatentStateResponseModel[] segments()
MultiSegmentSequence
segments
in interface MultiSegmentSequence
public SegmentCustomBuilderControl[] segmentBuilderControl()
MultiSegmentSequence
segmentBuilderControl
in interface MultiSegmentSequence
public boolean setup(SegmentSequenceBuilder ssb, int iCalibrationDetail)
MultiSegmentSequence
setup
in interface MultiSegmentSequence
ssb
- The Segment Sequence Builder InstanceiCalibrationDetail
- The Calibration Detailpublic boolean setup(SegmentResponseValueConstraint srvcLeading, SegmentResponseValueConstraint[] aSRVC, StretchBestFitResponse sbfr, BoundarySettings bs, int iCalibrationDetail)
MultiSegmentSequence
setup
in interface MultiSegmentSequence
srvcLeading
- 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)
MultiSegmentSequence
setup
in interface MultiSegmentSequence
dblLeftStretchResponseValue
- 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)
SingleSegmentSequence
setup
in interface SingleSegmentSequence
dblLeftStretchResponseValue
- 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)
MultiSegmentSequence
setupHermite
in interface MultiSegmentSequence
aSPRDLeft
- 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
R1ToR1
public double integrate(double dblBegin, double dblEnd) throws java.lang.Exception
R1ToR1
public boolean setLeftNode(double dblStretchLeftResponse, double dblStretchLeftResponseSlope, double dblStretchRightResponse, StretchBestFitResponse sbfr)
MultiSegmentSequence
setLeftNode
in interface MultiSegmentSequence
dblStretchLeftResponse
- 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
SingleSegmentSequence
responseValue
in interface SingleSegmentSequence
dblPredictorOrdinate
- Predictor Ordinatejava.lang.Exception
- Thrown if the Response Value cannot be calculatedpublic double responseValueDerivative(double dblPredictorOrdinate, int iOrder) throws java.lang.Exception
SingleSegmentSequence
responseValueDerivative
in interface SingleSegmentSequence
dblPredictorOrdinate
- Predictor OrdinateiOrder
- Order the Derivativejava.lang.Exception
- Thrown if the Response Value Derivative cannot be calculatedpublic SegmentPredictorResponseDerivative calcSPRD(double dblPredictorOrdinate)
MultiSegmentSequence
calcSPRD
in interface MultiSegmentSequence
dblPredictorOrdinate
- The Predictor Ordinatepublic WengertJacobian jackDResponseDCalibrationInput(double dblPredictorOrdinate, int iOrder)
SingleSegmentSequence
jackDResponseDCalibrationInput
in interface SingleSegmentSequence
dblPredictorOrdinate
- Predictor OrdinateiOrder
- Order of Derivative desiredpublic WengertJacobian jackDResponseDManifestMeasure(java.lang.String strManifestMeasure, double dblPredictorOrdinate, int iOrder)
SingleSegmentSequence
jackDResponseDManifestMeasure
in interface SingleSegmentSequence
strManifestMeasure
- Manifest Measure whose Sensitivity is soughtdblPredictorOrdinate
- Predictor OrdinateiOrder
- Order of Derivative desiredpublic Monotonocity monotoneType(double dblPredictorOrdinate)
SingleSegmentSequence
monotoneType
in interface SingleSegmentSequence
dblPredictorOrdinate
- Predictor Ordinatepublic boolean isLocallyMonotone() throws java.lang.Exception
SingleSegmentSequence
isLocallyMonotone
in interface SingleSegmentSequence
java.lang.Exception
- Thrown if the Segment Monotone Type could not be estimatedpublic boolean isCoMonotone(double[] adblMeasuredResponse) throws java.lang.Exception
SingleSegmentSequence
isCoMonotone
in interface SingleSegmentSequence
adblMeasuredResponse
- The Array of Measured Responsesjava.lang.Exception
- Thrown if the Segment Monotone Type could not be estimatedpublic boolean isKnot(double dblPredictorOrdinate)
SingleSegmentSequence
isKnot
in interface SingleSegmentSequence
dblPredictorOrdinate
- Predictor Ordinatepublic double calcLeftEdgeDerivative(int iOrder) throws java.lang.Exception
MultiSegmentSequence
calcLeftEdgeDerivative
in interface MultiSegmentSequence
iOrder
- Order of the Derivativejava.lang.Exception
- Thrown if the Derivative cannot be calculatedpublic double calcRightEdgeDerivative(int iOrder) throws java.lang.Exception
MultiSegmentSequence
calcRightEdgeDerivative
in interface MultiSegmentSequence
iOrder
- Order of the Derivativejava.lang.Exception
- Thrown if the Derivative cannot be calculatedpublic boolean resetNode(int iPredictorOrdinateIndex, double dblResponseReset)
SingleSegmentSequence
resetNode
in interface SingleSegmentSequence
iPredictorOrdinateIndex
- The Predictor Ordinate Node Index whose Response is to be resetdblResponseReset
- The Response to resetpublic boolean resetNode(int iPredictorOrdinateIndex, SegmentResponseValueConstraint srvcReset)
SingleSegmentSequence
resetNode
in interface SingleSegmentSequence
iPredictorOrdinateIndex
- The Predictor Ordinate Node Index whose Response is to be resetsrvcReset
- The Segment Constraintpublic R1ToR1 toAU()
SingleSegmentSequence
toAU
in interface SingleSegmentSequence
public boolean in(double dblPredictorOrdinate) throws java.lang.Exception
MultiSegmentSequence
in
in interface MultiSegmentSequence
dblPredictorOrdinate
- Predictor Ordinatejava.lang.Exception
- Thrown if the Inputs are invalidpublic double getLeftPredictorOrdinateEdge()
SingleSegmentSequence
getLeftPredictorOrdinateEdge
in interface SingleSegmentSequence
public double getRightPredictorOrdinateEdge()
SingleSegmentSequence
getRightPredictorOrdinateEdge
in interface SingleSegmentSequence
public int containingIndex(double dblPredictorOrdinate, boolean bIncludeLeft, boolean bIncludeRight) throws java.lang.Exception
MultiSegmentSequence
containingIndex
in interface MultiSegmentSequence
dblPredictorOrdinate
- 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)
MultiSegmentSequence
clipLeft
in interface MultiSegmentSequence
strName
- Name of the Clipped StretchdblPredictorOrdinate
- Predictor Ordinate Left of which the Clipping is to be appliedpublic CalibratableMultiSegmentSequence clipRight(java.lang.String strName, double dblPredictorOrdinate)
MultiSegmentSequence
clipRight
in interface MultiSegmentSequence
strName
- Name of the Clipped StretchdblPredictorOrdinate
- Predictor Ordinate Right of which the Clipping is to be appliedpublic double curvatureDPE() throws java.lang.Exception
MultiSegmentSequence
curvatureDPE
in interface MultiSegmentSequence
java.lang.Exception
- Thrown if the Span Curvature DPE cannot be computedpublic double lengthDPE() throws java.lang.Exception
MultiSegmentSequence
lengthDPE
in interface MultiSegmentSequence
java.lang.Exception
- Thrown if the Span Length DPE cannot be computedpublic double bestFitDPE(StretchBestFitResponse rbfr) throws java.lang.Exception
MultiSegmentSequence
bestFitDPE
in interface MultiSegmentSequence
rbfr
- Stretch Best Fit Weighted Response Valuesjava.lang.Exception
- Thrown if the Stretch Best Fit DPE cannot be computedpublic MergeSubStretchManager msm()
MultiSegmentSequence
msm
in interface MultiSegmentSequence
public java.lang.String displayString()
MultiSegmentSequence
displayString
in interface MultiSegmentSequence