ExposureAdjustmentDigest.java

  1. package org.drip.xva.gross;

  2. /*
  3.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  4.  */

  5. /*!
  6.  * Copyright (C) 2020 Lakshmi Krishnamurthy
  7.  * Copyright (C) 2019 Lakshmi Krishnamurthy
  8.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  9.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  10.  *
  11.  *  This file is part of DROP, an open-source library targeting analytics/risk, transaction cost analytics,
  12.  *      asset liability management analytics, capital, exposure, and margin analytics, valuation adjustment
  13.  *      analytics, and portfolio construction analytics within and across fixed income, credit, commodity,
  14.  *      equity, FX, and structured products. It also includes auxiliary libraries for algorithm support,
  15.  *      numerical analysis, numerical optimization, spline builder, model validation, statistical learning,
  16.  *      and computational support.
  17.  *  
  18.  *      https://lakshmidrip.github.io/DROP/
  19.  *  
  20.  *  DROP is composed of three modules:
  21.  *  
  22.  *  - DROP Product Core - https://lakshmidrip.github.io/DROP-Product-Core/
  23.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  24.  *  - DROP Computational Core - https://lakshmidrip.github.io/DROP-Computational-Core/
  25.  *
  26.  *  DROP Product Core implements libraries for the following:
  27.  *  - Fixed Income Analytics
  28.  *  - Loan Analytics
  29.  *  - Transaction Cost Analytics
  30.  *
  31.  *  DROP Portfolio Core implements libraries for the following:
  32.  *  - Asset Allocation Analytics
  33.  *  - Asset Liability Management Analytics
  34.  *  - Capital Estimation Analytics
  35.  *  - Exposure Analytics
  36.  *  - Margin Analytics
  37.  *  - XVA Analytics
  38.  *
  39.  *  DROP Computational Core implements libraries for the following:
  40.  *  - Algorithm Support
  41.  *  - Computation Support
  42.  *  - Function Analysis
  43.  *  - Model Validation
  44.  *  - Numerical Analysis
  45.  *  - Numerical Optimizer
  46.  *  - Spline Builder
  47.  *  - Statistical Learning
  48.  *
  49.  *  Documentation for DROP is Spread Over:
  50.  *
  51.  *  - Main                     => https://lakshmidrip.github.io/DROP/
  52.  *  - Wiki                     => https://github.com/lakshmiDRIP/DROP/wiki
  53.  *  - GitHub                   => https://github.com/lakshmiDRIP/DROP
  54.  *  - Repo Layout Taxonomy     => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md
  55.  *  - Javadoc                  => https://lakshmidrip.github.io/DROP/Javadoc/index.html
  56.  *  - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal
  57.  *  - Release Versions         => https://lakshmidrip.github.io/DROP/version.html
  58.  *  - Community Credits        => https://lakshmidrip.github.io/DROP/credits.html
  59.  *  - Issues Catalog           => https://github.com/lakshmiDRIP/DROP/issues
  60.  *  - JUnit                    => https://lakshmidrip.github.io/DROP/junit/index.html
  61.  *  - Jacoco                   => https://lakshmidrip.github.io/DROP/jacoco/index.html
  62.  *
  63.  *  Licensed under the Apache License, Version 2.0 (the "License");
  64.  *      you may not use this file except in compliance with the License.
  65.  *  
  66.  *  You may obtain a copy of the License at
  67.  *      http://www.apache.org/licenses/LICENSE-2.0
  68.  *  
  69.  *  Unless required by applicable law or agreed to in writing, software
  70.  *      distributed under the License is distributed on an "AS IS" BASIS,
  71.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  72.  *  
  73.  *  See the License for the specific language governing permissions and
  74.  *      limitations under the License.
  75.  */

  76. /**
  77.  * <i>ExposureAdjustmentDigest</i> holds the "thin" Statistics of the Aggregations across Multiple Path
  78.  * Projection Runs along the Granularity of a Counter Party Group (i.e., across multiple Funding and
  79.  * Credit/Debt Netting groups). The References are:
  80.  *
  81.  *  <br><br>
  82.  *  <ul>
  83.  *      <li>
  84.  *          Burgard, C., and M. Kjaer (2014): PDE Representations of Derivatives with Bilateral Counter-party
  85.  *              Risk and Funding Costs <i>Journal of Credit Risk</i> <b>7 (3)</b> 1-19
  86.  *      </li>
  87.  *      <li>
  88.  *          Burgard, C., and M. Kjaer (2014): In the Balance <i>Risk</i> <b>24 (11)</b> 72-75
  89.  *      </li>
  90.  *      <li>
  91.  *          Gregory, J. (2009): Being Two-faced over Counter-party Credit Risk <i>Risk</i> <b>20 (2)</b>
  92.  *              86-90
  93.  *      </li>
  94.  *      <li>
  95.  *          Li, B., and Y. Tang (2007): <i>Quantitative Analysis, Derivatives Modeling, and Trading
  96.  *              Strategies in the Presence of Counter-party Credit Risk for the Fixed Income Market</i>
  97.  *              <b>World Scientific Publishing</b> Singapore
  98.  *      </li>
  99.  *      <li>
  100.  *          Piterbarg, V. (2010): Funding Beyond Discounting: Collateral Agreements and Derivatives Pricing
  101.  *              <i>Risk</i> <b>21 (2)</b> 97-102
  102.  *      </li>
  103.  *  </ul>
  104.  *
  105.  *  <br><br>
  106.  *  <ul>
  107.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/PortfolioCore.md">Portfolio Core Module</a></li>
  108.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/XVAAnalyticsLibrary.md">XVA Analytics Library</a></li>
  109.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/xva/README.md">Valuation Adjustments that account for Collateral, CC Credit/Debt and Funding Overhead</a></li>
  110.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/xva/gross/README.md">XVA Gross Adiabat Exposure Aggregation</a></li>
  111.  *  </ul>
  112.  * <br><br>
  113.  *
  114.  * @author Lakshmi Krishnamurthy
  115.  */

  116. public class ExposureAdjustmentDigest
  117. {
  118.     private org.drip.measure.statistics.UnivariateDiscreteThin _cvaThinStatistics = null;
  119.     private org.drip.measure.statistics.UnivariateDiscreteThin _dvaThinStatistics = null;
  120.     private org.drip.measure.statistics.UnivariateDiscreteThin _fbaThinStatistics = null;
  121.     private org.drip.measure.statistics.UnivariateDiscreteThin _fcaThinStatistics = null;
  122.     private org.drip.measure.statistics.UnivariateDiscreteThin _fdaThinStatistics = null;
  123.     private org.drip.measure.statistics.UnivariateDiscreteThin _fvaThinStatistics = null;
  124.     private org.drip.measure.statistics.UnivariateDiscreteThin _ucvaThinStatistics = null;
  125.     private org.drip.measure.statistics.UnivariateDiscreteThin _sfvaThinStatistics = null;
  126.     private org.drip.measure.statistics.UnivariateDiscreteThin _cvaclThinStatistics = null;
  127.     private org.drip.measure.statistics.UnivariateDiscreteThin _ftdcvaThinStatistics = null;
  128.     private org.drip.measure.statistics.UnivariateDiscreteThin _ucolvaThinStatistics = null;
  129.     private org.drip.measure.statistics.UnivariateDiscreteThin _totalvaThinStatistics = null;
  130.     private org.drip.measure.statistics.UnivariateDiscreteThin _ftdcolvaThinStatistics = null;
  131.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  132.         _collateralizedExposureThinStatistics = null;
  133.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  134.         _uncollateralizedExposureThinStatisticsArray = null;
  135.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  136.         _collateralizedExposureThinStatisticsPV = null;
  137.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  138.         _uncollateralizedExposurePVThinStatisticsArray = null;
  139.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  140.         _collateralizedPositiveExposureThinStatisticsArray = null;
  141.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  142.         _collateralizedNegativeExposureThinStatisticsArray = null;
  143.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  144.         _uncollateralizedPositiveExposureThinStatisticsArray = null;
  145.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  146.         _uncollateralizedNegativeExposureThinStatisticsArray = null;
  147.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  148.         _collateralizedPositiveExposurePVThinStatisticsArray = null;
  149.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  150.         _collateralizedNegativeExposurePVThinStatisticsArray = null;
  151.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  152.         _uncollateralizedPositiveExposurePVThinStatisticsArray = null;
  153.     private org.drip.measure.statistics.UnivariateDiscreteThin[]
  154.         _uncollateralizedNegativeExposurePVThinStatisticsArray = null;
  155.     private org.drip.measure.statistics.UnivariateDiscreteThin[] _fundingExposureThinStatisticsArray = null;
  156.     private org.drip.measure.statistics.UnivariateDiscreteThin[] _fundingExposurePVThinStatisticsArray = null;

  157.     /**
  158.      * ExposureAdjustmentDigest Constructor
  159.      *
  160.      * @param ucolva The Array of Unilateral Collateral VA
  161.      * @param ftdcolva The Array of Bilateral Collateral VA
  162.      * @param ucva The Array of UCVA
  163.      * @param ftdcva The Array of FTD CVA
  164.      * @param cva The Array of CVA
  165.      * @param cvacl The Array of CVA Contra-Liabilities
  166.      * @param dva The Array of DVA
  167.      * @param fva The Array of FVA
  168.      * @param fda The Array of FDA
  169.      * @param fca The Array of FCA
  170.      * @param fba The Array of FBA
  171.      * @param sfva The Array of SFVA
  172.      * @param totalVA The Array of Total VA
  173.      * @param collateralizedExposure Double Array of Collateralized Exposure
  174.      * @param collateralizedExposurePV Double Array of Collateralized Exposure PV
  175.      * @param collateralizedPositiveExposure Double Array of Collateralized Positive Exposure
  176.      * @param collateralizedPositiveExposurePV Double Array of Collateralized Positive Exposure PV
  177.      * @param collateralizedNegativeExposure Double Array of Collateralized Negative Exposure
  178.      * @param collateralizedNegativeExposurePV Double Array of Collateralized Negative Exposure PV
  179.      * @param uncollateralizedExposure Double Array of Uncollateralized Exposure
  180.      * @param uncollateralizedExposurePV Double Array of Uncollateralized Exposure PV
  181.      * @param uncollateralizedPositiveExposure Double Array of Uncollateralized Positive Exposure
  182.      * @param uncollateralizedPositiveExposurePV Double Array of Uncollateralized Positive Exposure PV
  183.      * @param uncollateralizedNegativeExposure Double Array of Uncollateralized Negative Exposure
  184.      * @param uncollateralizedNegativeExposurePV Double Array of Uncollateralized Negative Exposure PV
  185.      * @param fundingExposure Double Array of Funding Exposure
  186.      * @param fundingExposurePV Double Array of Funding Exposure PV
  187.      *
  188.      * @throws java.lang.Exception Thrown if the Inputs are Invalid
  189.      */

  190.     public ExposureAdjustmentDigest (
  191.         final double[] ucolva,
  192.         final double[] ftdcolva,
  193.         final double[] ucva,
  194.         final double[] ftdcva,
  195.         final double[] cva,
  196.         final double[] cvacl,
  197.         final double[] dva,
  198.         final double[] fva,
  199.         final double[] fda,
  200.         final double[] fca,
  201.         final double[] fba,
  202.         final double[] sfva,
  203.         final double[] totalVA,
  204.         final double[][] collateralizedExposure,
  205.         final double[][] collateralizedExposurePV,
  206.         final double[][] collateralizedPositiveExposure,
  207.         final double[][] collateralizedPositiveExposurePV,
  208.         final double[][] collateralizedNegativeExposure,
  209.         final double[][] collateralizedNegativeExposurePV,
  210.         final double[][] uncollateralizedExposure,
  211.         final double[][] uncollateralizedExposurePV,
  212.         final double[][] uncollateralizedPositiveExposure,
  213.         final double[][] uncollateralizedPositiveExposurePV,
  214.         final double[][] uncollateralizedNegativeExposure,
  215.         final double[][] uncollateralizedNegativeExposurePV,
  216.         final double[][] fundingExposure,
  217.         final double[][] fundingExposurePV)
  218.         throws java.lang.Exception
  219.     {
  220.         if (null == ucolva ||
  221.             null == ftdcolva ||
  222.             null == ucva ||
  223.             null == ftdcva ||
  224.             null == cva ||
  225.             null == cvacl ||
  226.             null == dva ||
  227.             null == fva ||
  228.             null == fca ||
  229.             null == fba ||
  230.             null == sfva ||
  231.             null == totalVA ||
  232.             null == collateralizedExposure ||
  233.             null == collateralizedExposurePV ||
  234.             null == collateralizedPositiveExposure ||
  235.             null == collateralizedPositiveExposurePV ||
  236.             null == collateralizedNegativeExposure ||
  237.             null == collateralizedNegativeExposurePV ||
  238.             null == uncollateralizedExposure ||
  239.             null == uncollateralizedExposurePV ||
  240.             null == uncollateralizedPositiveExposure ||
  241.             null == uncollateralizedPositiveExposurePV ||
  242.             null == uncollateralizedNegativeExposure ||
  243.             null == uncollateralizedNegativeExposurePV ||
  244.             null == fundingExposure ||
  245.             null == fundingExposurePV)
  246.         {
  247.             throw new java.lang.Exception ("ExposureAdjustmentDigest Constructor => Invalid Inputs");
  248.         }

  249.         _ucolvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (ucolva);

  250.         _ftdcolvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (ftdcolva);

  251.         _ucvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (ucva);

  252.         _ftdcvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (ftdcva);

  253.         _cvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (cva);

  254.         _cvaclThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (cvacl);

  255.         _dvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (dva);

  256.         _fvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (fva);

  257.         _fdaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (fda);

  258.         _fcaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (fca);

  259.         _fbaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (fba);

  260.         _sfvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (sfva);

  261.         _totalvaThinStatistics = new org.drip.measure.statistics.UnivariateDiscreteThin (totalVA);

  262.         int vertexCount = collateralizedExposure.length;
  263.         _collateralizedExposureThinStatistics = new
  264.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  265.         _uncollateralizedExposureThinStatisticsArray = new
  266.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  267.         _collateralizedExposureThinStatisticsPV = new
  268.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  269.         _uncollateralizedExposurePVThinStatisticsArray = new
  270.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  271.         _collateralizedPositiveExposureThinStatisticsArray = new
  272.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  273.         _collateralizedPositiveExposurePVThinStatisticsArray = new
  274.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  275.         _collateralizedNegativeExposureThinStatisticsArray = new
  276.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  277.         _collateralizedNegativeExposurePVThinStatisticsArray = new
  278.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  279.         _uncollateralizedPositiveExposureThinStatisticsArray = new
  280.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  281.         _uncollateralizedPositiveExposurePVThinStatisticsArray = new
  282.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  283.         _uncollateralizedNegativeExposureThinStatisticsArray = new
  284.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  285.         _uncollateralizedNegativeExposurePVThinStatisticsArray = new
  286.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  287.         _fundingExposureThinStatisticsArray = new
  288.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];
  289.         _fundingExposurePVThinStatisticsArray = new
  290.             org.drip.measure.statistics.UnivariateDiscreteThin[vertexCount];

  291.         if (0 == vertexCount ||
  292.             vertexCount != collateralizedExposurePV.length ||
  293.             vertexCount != collateralizedPositiveExposure.length ||
  294.             vertexCount != collateralizedPositiveExposurePV.length ||
  295.             vertexCount != collateralizedNegativeExposure.length ||
  296.             vertexCount != collateralizedNegativeExposurePV.length ||
  297.             vertexCount != uncollateralizedExposure.length ||
  298.             vertexCount != uncollateralizedExposurePV.length ||
  299.             vertexCount != uncollateralizedPositiveExposure.length ||
  300.             vertexCount != collateralizedPositiveExposurePV.length ||
  301.             vertexCount != collateralizedNegativeExposurePV.length ||
  302.             vertexCount != collateralizedNegativeExposurePV.length ||
  303.             vertexCount != fundingExposure.length ||
  304.             vertexCount != fundingExposurePV.length)
  305.         {
  306.             throw new java.lang.Exception ("ExposureAdjustmentDigest Constructor => Invalid Inputs");
  307.         }

  308.         for (int i = 0 ; i < vertexCount; ++i)
  309.         {
  310.             _collateralizedExposureThinStatistics[i] = new
  311.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedExposure[i]);

  312.             _collateralizedExposureThinStatisticsPV[i] = new
  313.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedExposurePV[i]);

  314.             _collateralizedPositiveExposureThinStatisticsArray[i] = new
  315.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedPositiveExposure[i]);

  316.             _collateralizedPositiveExposurePVThinStatisticsArray[i] = new
  317.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedPositiveExposurePV[i]);

  318.             _collateralizedNegativeExposureThinStatisticsArray[i] = new
  319.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedNegativeExposure[i]);

  320.             _collateralizedNegativeExposurePVThinStatisticsArray[i] = new
  321.                 org.drip.measure.statistics.UnivariateDiscreteThin (collateralizedNegativeExposurePV[i]);

  322.             _uncollateralizedExposureThinStatisticsArray[i] = new
  323.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedExposure[i]);

  324.             _uncollateralizedExposurePVThinStatisticsArray[i] = new
  325.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedExposurePV[i]);

  326.             _uncollateralizedPositiveExposureThinStatisticsArray[i] = new
  327.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedPositiveExposure[i]);

  328.             _uncollateralizedPositiveExposurePVThinStatisticsArray[i] = new
  329.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedPositiveExposurePV[i]);

  330.             _uncollateralizedNegativeExposureThinStatisticsArray[i] = new
  331.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedNegativeExposure[i]);

  332.             _uncollateralizedNegativeExposurePVThinStatisticsArray[i] = new
  333.                 org.drip.measure.statistics.UnivariateDiscreteThin (uncollateralizedNegativeExposurePV[i]);
  334.         }
  335.     }

  336.     /**
  337.      * Retrieve the Univariate Thin Statistics for the Collateralized Exposure
  338.      *
  339.      * @return Univariate Thin Statistics for the Collateralized Exposure
  340.      */

  341.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedExposure()
  342.     {
  343.         return _collateralizedExposureThinStatistics;
  344.     }

  345.     /**
  346.      * Retrieve the Univariate Thin Statistics for the Collateralized Exposure PV
  347.      *
  348.      * @return Univariate Thin Statistics for the Collateralized Exposure PV
  349.      */

  350.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedExposurePV()
  351.     {
  352.         return _collateralizedExposureThinStatisticsPV;
  353.     }

  354.     /**
  355.      * Retrieve the Univariate Thin Statistics for the Collateralized Positive Exposure
  356.      *
  357.      * @return Univariate Thin Statistics for the Collateralized Positive Exposure
  358.      */

  359.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedPositiveExposure()
  360.     {
  361.         return _collateralizedPositiveExposureThinStatisticsArray;
  362.     }

  363.     /**
  364.      * Retrieve the Univariate Thin Statistics for the Collateralized Positive Exposure PV
  365.      *
  366.      * @return Univariate Thin Statistics for the Collateralized Positive Exposure PV
  367.      */

  368.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedPositiveExposurePV()
  369.     {
  370.         return _collateralizedPositiveExposurePVThinStatisticsArray;
  371.     }

  372.     /**
  373.      * Retrieve the Univariate Thin Statistics for the Collateralized Negative Exposure
  374.      *
  375.      * @return Univariate Thin Statistics for the Collateralized Negative Exposure
  376.      */

  377.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedNegativeExposure()
  378.     {
  379.         return _collateralizedNegativeExposureThinStatisticsArray;
  380.     }

  381.     /**
  382.      * Retrieve the Univariate Thin Statistics for the Collateralized Negative Exposure PV
  383.      *
  384.      * @return Univariate Thin Statistics for the Collateralized Negative Exposure PV
  385.      */

  386.     public org.drip.measure.statistics.UnivariateDiscreteThin[] collateralizedNegativeExposurePV()
  387.     {
  388.         return _collateralizedNegativeExposurePVThinStatisticsArray;
  389.     }

  390.     /**
  391.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Exposure
  392.      *
  393.      * @return Univariate Thin Statistics for the Uncollateralized Exposure
  394.      */

  395.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedExposure()
  396.     {
  397.         return _uncollateralizedExposureThinStatisticsArray;
  398.     }

  399.     /**
  400.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Exposure PV
  401.      *
  402.      * @return Univariate Thin Statistics for the Uncollateralized Exposure PV
  403.      */

  404.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedExposurePV()
  405.     {
  406.         return _uncollateralizedExposurePVThinStatisticsArray;
  407.     }

  408.     /**
  409.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Positive Exposure
  410.      *
  411.      * @return Univariate Thin Statistics for the Uncollateralized Positive Exposure
  412.      */

  413.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedPositiveExposure()
  414.     {
  415.         return _uncollateralizedPositiveExposureThinStatisticsArray;
  416.     }

  417.     /**
  418.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Positive Exposure PV
  419.      *
  420.      * @return Univariate Thin Statistics for the Uncollateralized Positive Exposure PV
  421.      */

  422.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedPositiveExposurePV()
  423.     {
  424.         return _uncollateralizedPositiveExposurePVThinStatisticsArray;
  425.     }

  426.     /**
  427.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Negative Exposure
  428.      *
  429.      * @return Univariate Thin Statistics for the Uncollateralized Negative Exposure
  430.      */

  431.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedNegativeExposure()
  432.     {
  433.         return _uncollateralizedNegativeExposureThinStatisticsArray;
  434.     }

  435.     /**
  436.      * Retrieve the Univariate Thin Statistics for the Uncollateralized Negative Exposure PV
  437.      *
  438.      * @return Univariate Thin Statistics for the Uncollateralized Negative Exposure PV
  439.      */

  440.     public org.drip.measure.statistics.UnivariateDiscreteThin[] uncollateralizedNegativeExposurePV()
  441.     {
  442.         return _uncollateralizedNegativeExposurePVThinStatisticsArray;
  443.     }

  444.     /**
  445.      * Retrieve the Univariate Thin Statistics for the Funding Exposure
  446.      *
  447.      * @return Univariate Thin Statistics for the Funding Exposure
  448.      */

  449.     public org.drip.measure.statistics.UnivariateDiscreteThin[] fundingExposure()
  450.     {
  451.         return _fundingExposureThinStatisticsArray;
  452.     }

  453.     /**
  454.      * Retrieve the Univariate Thin Statistics for the Funding Exposure PV
  455.      *
  456.      * @return Univariate Thin Statistics for the Funding Exposure PV
  457.      */

  458.     public org.drip.measure.statistics.UnivariateDiscreteThin[] fundingExposurePV()
  459.     {
  460.         return _fundingExposurePVThinStatisticsArray;
  461.     }

  462.     /**
  463.      * Retrieve the Univariate Thin Statistics for Unilateral Collateral VA
  464.      *
  465.      * @return Univariate Thin Statistics for Unilateral Collateral VA
  466.      */

  467.     public org.drip.measure.statistics.UnivariateDiscreteThin ucolva()
  468.     {
  469.         return _ucolvaThinStatistics;
  470.     }

  471.     /**
  472.      * Retrieve the Univariate Thin Statistics for Bilateral Collateral VA
  473.      *
  474.      * @return Univariate Thin Statistics for Bilateral Collateral VA
  475.      */

  476.     public org.drip.measure.statistics.UnivariateDiscreteThin ftdcolva()
  477.     {
  478.         return _ftdcolvaThinStatistics;
  479.     }

  480.     /**
  481.      * Retrieve the Univariate Thin Statistics for UCVA
  482.      *
  483.      * @return Univariate Thin Statistics for UCVA
  484.      */

  485.     public org.drip.measure.statistics.UnivariateDiscreteThin ucva()
  486.     {
  487.         return _ucvaThinStatistics;
  488.     }

  489.     /**
  490.      * Retrieve the Univariate Thin Statistics for FTD CVA
  491.      *
  492.      * @return Univariate Thin Statistics for FTD CVA
  493.      */

  494.     public org.drip.measure.statistics.UnivariateDiscreteThin ftdcva()
  495.     {
  496.         return _ftdcvaThinStatistics;
  497.     }

  498.     /**
  499.      * Retrieve the Univariate Thin Statistics for CVA
  500.      *
  501.      * @return Univariate Thin Statistics for CVA
  502.      */

  503.     public org.drip.measure.statistics.UnivariateDiscreteThin cva()
  504.     {
  505.         return _cvaThinStatistics;
  506.     }

  507.     /**
  508.      * Retrieve the Univariate Thin Statistics for CVA Contra-Liabilities
  509.      *
  510.      * @return Univariate Thin Statistics for CVA Contra-Liabilities
  511.      */

  512.     public org.drip.measure.statistics.UnivariateDiscreteThin cvacl()
  513.     {
  514.         return _cvaclThinStatistics;
  515.     }

  516.     /**
  517.      * Retrieve the Univariate Thin Statistics for DVA
  518.      *
  519.      * @return Univariate Thin Statistics for DVA
  520.      */

  521.     public org.drip.measure.statistics.UnivariateDiscreteThin dva()
  522.     {
  523.         return _dvaThinStatistics;
  524.     }

  525.     /**
  526.      * Retrieve the Univariate Thin Statistics for FVA
  527.      *
  528.      * @return Univariate Thin Statistics for FVA
  529.      */

  530.     public org.drip.measure.statistics.UnivariateDiscreteThin fva()
  531.     {
  532.         return _fvaThinStatistics;
  533.     }

  534.     /**
  535.      * Retrieve the Univariate Thin Statistics for FDA
  536.      *
  537.      * @return Univariate Thin Statistics for FDA
  538.      */

  539.     public org.drip.measure.statistics.UnivariateDiscreteThin fda()
  540.     {
  541.         return _fdaThinStatistics;
  542.     }

  543.     /**
  544.      * Retrieve the Univariate Thin Statistics for DVA2
  545.      *
  546.      * @return Univariate Thin Statistics for DVA2
  547.      */

  548.     public org.drip.measure.statistics.UnivariateDiscreteThin dva2()
  549.     {
  550.         return _fdaThinStatistics;
  551.     }

  552.     /**
  553.      * Retrieve the Univariate Thin Statistics for FCA
  554.      *
  555.      * @return Univariate Thin Statistics for FCA
  556.      */

  557.     public org.drip.measure.statistics.UnivariateDiscreteThin fca()
  558.     {
  559.         return _fcaThinStatistics;
  560.     }

  561.     /**
  562.      * Retrieve the Univariate Thin Statistics for FBA
  563.      *
  564.      * @return Univariate Thin Statistics for FBA
  565.      */

  566.     public org.drip.measure.statistics.UnivariateDiscreteThin fba()
  567.     {
  568.         return _fbaThinStatistics;
  569.     }

  570.     /**
  571.      * Retrieve the Univariate Thin Statistics for SFVA
  572.      *
  573.      * @return Univariate Thin Statistics for SFVA
  574.      */

  575.     public org.drip.measure.statistics.UnivariateDiscreteThin sfva()
  576.     {
  577.         return _sfvaThinStatistics;
  578.     }

  579.     /**
  580.      * Retrieve the Univariate Thin Statistics for Total VA
  581.      *
  582.      * @return Univariate Thin Statistics for Total VA
  583.      */

  584.     public org.drip.measure.statistics.UnivariateDiscreteThin totalVA()
  585.     {
  586.         return _totalvaThinStatistics;
  587.     }
  588. }