Package org.drip.historical.attribution
Class PositionChangeComponents
java.lang.Object
org.drip.historical.attribution.PositionChangeComponents
public class PositionChangeComponents
extends java.lang.Object
PositionChangeComponents contains the Decomposition of the Components of the Interval Change for a
given Position.
- Module = Computational Core Module
- Library = Computation Support
- Project = Historical State Processing Utilities
- Package = Position Market Change Components Attribution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description PositionChangeComponents(boolean bChangeTypeReturn, PositionMarketSnap pmsFirst, PositionMarketSnap pmsSecond, double dblAccrualChange, CaseInsensitiveHashMap<java.lang.Double> mapDifferenceMetric)
PositionChangeComponents Constructor -
Method Summary
Modifier and Type Method Description double
accrualChange()
Retrieve the Accrual Interval Changeboolean
changeTypeReturn()
Return the Position Change Typejava.lang.String
content()
Retrieve the Row of Content FieldsCaseInsensitiveHashMap<java.lang.Double>
differenceMetric()
Retrieve the Map of Difference Metricsdouble
explainedChange()
Retrieve the Explained Interval ChangeJulianDate
firstDate()
Retrieve the First Datedouble
grossChange()
Retrieve the Gross Interval Changedouble
grossCleanChange()
Retrieve the Gross Interval Clean Changejava.lang.String
header()
Retrieve the Row of Header Fieldsjava.util.Set<java.lang.String>
manifestMeasures()
Retrieve the Set of Manifest Measuresdouble
marketRealizationChange()
Retrieve the Full Manifest Measure Realization Position Changedouble
marketRollDownChange()
Retrieve the Full Manifest Measure Roll-down Position Changedouble
marketSensitivityChange()
Retrieve the Full Manifest Measure Market Sensitivity Position ChangePositionMarketSnap
pmsFirst()
Retrieve the First Position Market Snapshot InstancePositionMarketSnap
pmsSecond()
Retrieve the Second Position Market Snapshot InstanceJulianDate
secondDate()
Retrieve the Second Datedouble
specificMarketRealizationChange(java.lang.String strManifestMeasure)
Retrieve the Specific Manifest Measure Market Realization Position Changedouble
specificMarketRollDownChange(java.lang.String strManifestMeasure)
Retrieve the Specific Manifest Measure Market Roll-down Position Changedouble
specificMarketSensitivityChange(java.lang.String strManifestMeasure)
Retrieve the Specific Manifest Measure Market Sensitivity Position Changedouble
unexplainedChange()
Retrieve the Unexplained Interval ChangeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PositionChangeComponents
public PositionChangeComponents(boolean bChangeTypeReturn, PositionMarketSnap pmsFirst, PositionMarketSnap pmsSecond, double dblAccrualChange, CaseInsensitiveHashMap<java.lang.Double> mapDifferenceMetric) throws java.lang.ExceptionPositionChangeComponents Constructor- Parameters:
bChangeTypeReturn
- TRUE - Change Type is Return (Relative)pmsFirst
- The First Position Market Snapshot InstancepmsSecond
- The Second Position Market Snapshot InstancedblAccrualChange
- The Accrual Change Component of Interval Return/ChangemapDifferenceMetric
- The Map of Difference Metrics- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
changeTypeReturn
public boolean changeTypeReturn()Return the Position Change Type- Returns:
- TRUE - Change Type is Return (Relative)
-
manifestMeasures
public java.util.Set<java.lang.String> manifestMeasures()Retrieve the Set of Manifest Measures- Returns:
- The Set of Manifest Measures
-
pmsFirst
Retrieve the First Position Market Snapshot Instance- Returns:
- The First Position Market Snapshot Instance
-
pmsSecond
Retrieve the Second Position Market Snapshot Instance- Returns:
- The Second Position Market Snapshot Instance
-
firstDate
Retrieve the First Date- Returns:
- The First Date
-
secondDate
Retrieve the Second Date- Returns:
- The Second Date
-
grossCleanChange
public double grossCleanChange()Retrieve the Gross Interval Clean Change- Returns:
- The Gross Interval Clean Change
-
grossChange
public double grossChange()Retrieve the Gross Interval Change- Returns:
- The Gross Interval Change
-
specificMarketRealizationChange
public double specificMarketRealizationChange(java.lang.String strManifestMeasure) throws java.lang.ExceptionRetrieve the Specific Manifest Measure Market Realization Position Change- Parameters:
strManifestMeasure
- The Manifest Measure- Returns:
- The Specific Manifest Measure Market Realization Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
marketRealizationChange
public double marketRealizationChange() throws java.lang.ExceptionRetrieve the Full Manifest Measure Realization Position Change- Returns:
- The Full Manifest Measure Realization Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
specificMarketSensitivityChange
public double specificMarketSensitivityChange(java.lang.String strManifestMeasure) throws java.lang.ExceptionRetrieve the Specific Manifest Measure Market Sensitivity Position Change- Parameters:
strManifestMeasure
- The Manifest Measure- Returns:
- The Specific Manifest Measure Market Sensitivity Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
marketSensitivityChange
public double marketSensitivityChange() throws java.lang.ExceptionRetrieve the Full Manifest Measure Market Sensitivity Position Change- Returns:
- The Full Manifest Measure Market Sensitivity Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
specificMarketRollDownChange
public double specificMarketRollDownChange(java.lang.String strManifestMeasure) throws java.lang.ExceptionRetrieve the Specific Manifest Measure Market Roll-down Position Change- Parameters:
strManifestMeasure
- The Manifest Measure- Returns:
- The Specific Manifest Measure Market Roll-down Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
marketRollDownChange
public double marketRollDownChange() throws java.lang.ExceptionRetrieve the Full Manifest Measure Roll-down Position Change- Returns:
- The Full Manifest Measure Roll-down Position Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
accrualChange
public double accrualChange()Retrieve the Accrual Interval Change- Returns:
- The Accrual Interval Change
-
explainedChange
public double explainedChange() throws java.lang.ExceptionRetrieve the Explained Interval Change- Returns:
- The Explained Interval Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
unexplainedChange
public double unexplainedChange() throws java.lang.ExceptionRetrieve the Unexplained Interval Change- Returns:
- The Unexplained Interval Change
- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
differenceMetric
Retrieve the Map of Difference Metrics- Returns:
- The Map of Difference Metrics
-
header
public java.lang.String header()Retrieve the Row of Header Fields- Returns:
- The Row of Header Fields
-
content
public java.lang.String content()Retrieve the Row of Content Fields- Returns:
- The Row of Content Fields
-