Package org.drip.state.estimator
Class PredictorResponseWeightConstraint
java.lang.Object
org.drip.state.estimator.PredictorResponseWeightConstraint
public class PredictorResponseWeightConstraint
extends java.lang.Object
PredictorResponseWeightConstraint holds the Linearized Constraints (and, optionally, their quote
sensitivities) necessary needed for the Linear Calibration. Linearized Constraints are expressed as
Sum_i[Predictor Weight_i * Function (Response_i)] = Constraint Value
where Function can either be univariate function, or weighted spline basis set. To this end, it
implements the following functionality:
- PredictorResponseWeightConstraint constructor
- Add a Predictor/Response Weight entry to the Linearized Constraint
- Update the Constraint Value
- Update the Constraint Value Sensitivity
- Retrieve the Constraint Value
- Retrieve the Constraint Value Sensitivity
- Add a Merging Latent State Label
- Return the Set of Merged Latent State Labels
- Retrieve the Predictor To-From Response Weight Map
- Retrieve the Predictor To-From Response Weight Sensitivity Map
- "Absorb" the other PredictorResponseWeightConstraint Instance into the Current One
- Return the Set of Available Sensitivities (if any)
- Display the Constraints and the corresponding Weights
| Module | Product Core Module |
| Library | Fixed Income Analytics |
| Project | Latent State Inference and Creation Utilities |
| Package | Multi-Pass Customized Stretch Curve |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description PredictorResponseWeightConstraint()Empty PredictorResponseWeightConstraint constructor -
Method Summary
Modifier and Type Method Description booleanabsorb(PredictorResponseWeightConstraint otherPredictorResponseWeightConstraint)"Absorb" the other PredictorResponseWeightConstraint Instance into the Current OnebooleanaddDResponseWeightDManifestMeasure(java.lang.String manifestMeasure, double predictor, double dResponseWeightDManifestMeasure)Add a Predictor/Response Weight entry to the Linearized ConstraintbooleanaddMergeLabel(LatentStateLabel mergeLatentStateLabel)Add a Merging Latent State LabelbooleanaddPredictorResponseWeight(double predictor, double responseWeight)Add a Predictor/Response Weight entry to the Linearized ConstraintvoiddisplayString(java.lang.String comment)Display the Constraints and the corresponding Weightsjava.util.TreeMap<java.lang.Double,java.lang.Double>getDResponseWeightDManifestMeasure(java.lang.String manifestMeasure)Retrieve the Predictor To-From Response Weight Sensitivity MapdoublegetDValueDManifestMeasure(java.lang.String manifestMeasure)Retrieve the Constraint Value Sensitivityjava.util.TreeMap<java.lang.Double,java.lang.Double>getPredictorResponseWeight()Retrieve the Predictor To-From Response Weight MapdoublegetValue()Retrieve the Constraint Valuejava.util.Set<LatentStateLabel>mergeLabelSet()Return the Set of Merged Latent State Labelsjava.util.Set<java.lang.String>sensitivityKeys()Return the Set of Available Sensitivities (if any)booleanupdateDValueDManifestMeasure(java.lang.String manifestMeasure, double dValueDManifestMeasure)Update the Constraint Value SensitivitybooleanupdateValue(double value)Update the Constraint ValueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PredictorResponseWeightConstraint
public PredictorResponseWeightConstraint()Empty PredictorResponseWeightConstraint constructor
-
-
Method Details
-
addPredictorResponseWeight
public boolean addPredictorResponseWeight(double predictor, double responseWeight)Add a Predictor/Response Weight entry to the Linearized Constraint- Parameters:
predictor- The Predictor NoderesponseWeight- The Response Weight at the Node- Returns:
- TRUE - Successfully added
-
addDResponseWeightDManifestMeasure
public boolean addDResponseWeightDManifestMeasure(java.lang.String manifestMeasure, double predictor, double dResponseWeightDManifestMeasure)Add a Predictor/Response Weight entry to the Linearized Constraint- Parameters:
manifestMeasure- The Manifest Measurepredictor- The Predictor NodedResponseWeightDManifestMeasure- The Response Weight-to-Manifest Measure Sensitivity at the Node- Returns:
- TRUE - Successfully added
-
updateValue
public boolean updateValue(double value)Update the Constraint Value- Parameters:
value- The Constraint Value Update Increment- Returns:
- TRUE - This Update Succeeded
-
updateDValueDManifestMeasure
public boolean updateDValueDManifestMeasure(java.lang.String manifestMeasure, double dValueDManifestMeasure)Update the Constraint Value Sensitivity- Parameters:
manifestMeasure- The Manifest MeasuredValueDManifestMeasure- The Constraint Value Sensitivity Update Increment- Returns:
- TRUE - This Sensitivity Update Succeeded
-
getValue
public double getValue()Retrieve the Constraint Value- Returns:
- The Constraint Value
-
getDValueDManifestMeasure
public double getDValueDManifestMeasure(java.lang.String manifestMeasure) throws java.lang.ExceptionRetrieve the Constraint Value Sensitivity- Parameters:
manifestMeasure- The Manifest Measure- Returns:
- The Constraint Value Sensitivity
- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
addMergeLabel
Add a Merging Latent State Label- Parameters:
mergeLatentStateLabel- The Merging Latent State Label- Returns:
- TRUE - The Latent State Label Successfully Added
-
mergeLabelSet
Return the Set of Merged Latent State Labels- Returns:
- The Set of Merged Latent State Labels
-
getPredictorResponseWeight
public java.util.TreeMap<java.lang.Double,java.lang.Double> getPredictorResponseWeight()Retrieve the Predictor To-From Response Weight Map- Returns:
- The Predictor To-From Response Weight Map
-
getDResponseWeightDManifestMeasure
public java.util.TreeMap<java.lang.Double,java.lang.Double> getDResponseWeightDManifestMeasure(java.lang.String manifestMeasure)Retrieve the Predictor To-From Response Weight Sensitivity Map- Parameters:
manifestMeasure- The Manifest Measure- Returns:
- The Predictor To-From Response Weight Sensitivity Map
-
absorb
"Absorb" the other PredictorResponseWeightConstraint Instance into the Current One- Parameters:
otherPredictorResponseWeightConstraint- The "Other" PRWC Instance- Returns:
- TRUE - At least one entry of the "Other" was absorbed
-
sensitivityKeys
public java.util.Set<java.lang.String> sensitivityKeys()Return the Set of Available Sensitivities (if any)- Returns:
- The Set of Available Sensitivities
-
displayString
public void displayString(java.lang.String comment)Display the Constraints and the corresponding Weights- Parameters:
comment- The Prefix Comment
-