Table4Reconciler.java

  1. package org.drip.sample.helitterman;

  2. import org.drip.measure.bayesian.R1MultivariateConvolutionMetrics;
  3. import org.drip.measure.continuous.MultivariateMeta;
  4. import org.drip.measure.gaussian.*;
  5. import org.drip.measure.statistics.MultivariateMoments;
  6. import org.drip.numerical.common.FormatUtil;
  7. import org.drip.portfolioconstruction.allocator.*;
  8. import org.drip.portfolioconstruction.asset.*;
  9. import org.drip.portfolioconstruction.bayesian.*;
  10. import org.drip.portfolioconstruction.params.AssetUniverseStatisticalProperties;
  11. import org.drip.service.env.EnvManager;

  12. /*
  13.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  14.  */

  15. /*!
  16.  * Copyright (C) 2019 Lakshmi Krishnamurthy
  17.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  18.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  19.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  20.  *
  21.  *  This file is part of DROP, an open-source library targeting risk, transaction costs, exposure, margin
  22.  *      calculations, valuation adjustment, and portfolio construction within and across fixed income,
  23.  *      credit, commodity, equity, FX, and structured products.
  24.  *  
  25.  *      https://lakshmidrip.github.io/DROP/
  26.  *  
  27.  *  DROP is composed of three modules:
  28.  *  
  29.  *  - DROP Analytics Core - https://lakshmidrip.github.io/DROP-Analytics-Core/
  30.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  31.  *  - DROP Numerical Core - https://lakshmidrip.github.io/DROP-Numerical-Core/
  32.  *
  33.  *  DROP Analytics Core implements libraries for the following:
  34.  *  - Fixed Income Analytics
  35.  *  - Asset Backed Analytics
  36.  *  - XVA Analytics
  37.  *  - Exposure and Margin Analytics
  38.  *
  39.  *  DROP Portfolio Core implements libraries for the following:
  40.  *  - Asset Allocation Analytics
  41.  *  - Transaction Cost Analytics
  42.  *
  43.  *  DROP Numerical Core implements libraries for the following:
  44.  *  - Statistical Learning
  45.  *  - Numerical Optimizer
  46.  *  - Spline Builder
  47.  *  - Algorithm Support
  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>Table4Reconciler</i> reconciles the First Set of Outputs (Table #4) of the Black-Litterman Model
  78.  * Process as illustrated in the Following Paper:
  79.  *  
  80.  * <br><br>
  81.  *  <ul>
  82.  *      <li>
  83.  *          He. G., and R. Litterman (1999): The Intuition behind the Black-Litterman Model Portfolios,
  84.  *              Goldman Sachs Asset Management
  85.  *      </li>
  86.  *  </ul>
  87.  *  
  88.  * <br><br>
  89.  *  <ul>
  90.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/PortfolioCore.md">Portfolio Core Module</a></li>
  91.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/AssetAllocationAnalyticsLibrary.md">Asset Allocation Analytics Library</a></li>
  92.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/README.md">Sample</a></li>
  93.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/helitterman/README.md">He and Litterman (1999) Reconcilers</a></li>
  94.  *  </ul>
  95.  * <br><br>
  96.  *
  97.  * @author Lakshmi Krishnamurthy
  98.  */

  99. public class Table4Reconciler
  100. {

  101.     public static final void main (
  102.         final String[] argumentArray)
  103.         throws Exception
  104.     {
  105.         EnvManager.InitEnv ("");

  106.         String[] assetIDArray = new String[]
  107.         {
  108.             "AUS",
  109.             "CAD",
  110.             "FRA",
  111.             "GER",
  112.             "JPN",
  113.             "UK ",
  114.             "USA"
  115.         };
  116.         double[] assetEquilibriumWeightArray = new double[]
  117.         {
  118.             0.016,
  119.             0.022,
  120.             0.052,
  121.             0.055,
  122.             0.116,
  123.             0.124,
  124.             0.615
  125.         };
  126.         double[][] assetExcessReturnsCorrelationMatrix = new double[][]
  127.         {
  128.             {1.000, 0.488, 0.478, 0.515, 0.439, 0.512, 0.491},
  129.             {0.488, 1.000, 0.664, 0.655, 0.310, 0.608, 0.779},
  130.             {0.478, 0.664, 1.000, 0.861, 0.355, 0.783, 0.668},
  131.             {0.515, 0.655, 0.861, 1.000, 0.354, 0.777, 0.653},
  132.             {0.439, 0.310, 0.355, 0.354, 1.000, 0.405, 0.306},
  133.             {0.512, 0.608, 0.783, 0.777, 0.405, 1.000, 0.652},
  134.             {0.491, 0.779, 0.668, 0.653, 0.306, 0.652, 1.000}
  135.         };
  136.         double[] assetExcessReturnsVolatilityArray = new double[]
  137.         {
  138.             0.160,
  139.             0.203,
  140.             0.248,
  141.             0.271,
  142.             0.210,
  143.             0.200,
  144.             0.187
  145.         };
  146.         double[][] assetSpaceViewProjectionMatrix = new double[][]
  147.         {
  148.             {0.000,  0.000, -0.295,  1.000,  0.000, -0.705,  0.000}
  149.         };
  150.         double tau = 0.05;
  151.         double riskAversion = 2.5;
  152.         double riskFreeRate = 0.0;
  153.         double[] projectionExpectedExcessReturnsArray = new double[]
  154.         {
  155.             0.05
  156.         };
  157.         double[][] projectionExcessReturnsCovarianceMatrix = new double[][]
  158.         {
  159.             {0.021 * tau}
  160.         };
  161.         double[] assetSpaceJointReturnsReconcilerArray = new double[]
  162.         {
  163.             0.043,
  164.             0.076,
  165.             0.093,
  166.             0.110,
  167.             0.045,
  168.             0.070,
  169.             0.081
  170.         };
  171.         double[] posteriorOptimalWeightsReconcilerArray = new double[]
  172.         {
  173.              0.015,
  174.              0.021,
  175.             -0.040,
  176.              0.354,
  177.              0.110,
  178.             -0.095,
  179.              0.586
  180.         };
  181.         double[] posteriorOptimalDeviationReconcilerArray = new double[]
  182.         {
  183.              0.000,
  184.              0.000,
  185.             -0.089,
  186.              0.302,
  187.              0.000,
  188.             -0.213,
  189.              0.000
  190.         };
  191.         double[] bayesPELoadingsReconcilerArray = new double[]
  192.         {
  193.             0.302
  194.         };

  195.         R1MultivariateNormal viewDistribution = R1MultivariateNormal.Standard (
  196.             new MultivariateMeta (
  197.                 new String[] {
  198.                     "TABLE 4"
  199.                 }
  200.             ),
  201.             projectionExpectedExcessReturnsArray,
  202.             projectionExcessReturnsCovarianceMatrix
  203.         );

  204.         double[][] assetExcessReturnsCovarianceMatrix = new double[assetIDArray.length][assetIDArray.length];

  205.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  206.         {
  207.             for (int assetID2 = 0; assetID2 < assetIDArray.length; ++assetID2)
  208.             {
  209.                 assetExcessReturnsCovarianceMatrix[assetID1][assetID2] =
  210.                     assetExcessReturnsCorrelationMatrix[assetID1][assetID2] *
  211.                     assetExcessReturnsVolatilityArray[assetID1] * assetExcessReturnsVolatilityArray[assetID2];
  212.             }
  213.         }

  214.         BlackLittermanCombinationEngine blackLittermanCombinationEngine =
  215.             new BlackLittermanCombinationEngine (
  216.                 ForwardReverseHoldingsAllocation.Reverse (
  217.                     Portfolio.Standard (
  218.                         assetIDArray,
  219.                         assetEquilibriumWeightArray
  220.                     ),
  221.                     assetExcessReturnsCovarianceMatrix,
  222.                     riskAversion
  223.                 ),
  224.                 new PriorControlSpecification (
  225.                     false,
  226.                     riskFreeRate,
  227.                     tau
  228.                 ),
  229.                 new ProjectionSpecification (
  230.                     viewDistribution,
  231.                     assetSpaceViewProjectionMatrix
  232.                 )
  233.             );

  234.         R1MultivariateConvolutionMetrics jointPosteriorMetrics =
  235.             blackLittermanCombinationEngine.customConfidenceRun().jointPosteriorMetrics();

  236.         R1MultivariateNormal jointDistribution = (R1MultivariateNormal) jointPosteriorMetrics.joint();

  237.         R1MultivariateNormal posteriorDistribution =
  238.             (R1MultivariateNormal) jointPosteriorMetrics.posterior();

  239.         double[] assetSpaceJointReturnsArray = jointDistribution.mean();

  240.         double[][] assetSpaceJointCovarianceMatrix = jointDistribution.covariance().covarianceMatrix();

  241.         double[][] assetSpacePosteriorCovarianceMatrix =
  242.             posteriorDistribution.covariance().covarianceMatrix();

  243.         HoldingsAllocation optimizationOutput = new QuadraticMeanVarianceOptimizer().allocate (
  244.             new HoldingsAllocationControl (
  245.                 assetIDArray,
  246.                 CustomRiskUtilitySettings.RiskAversion (
  247.                     riskAversion
  248.                 ),
  249.                 EqualityConstraintSettings.Unconstrained()
  250.             ),
  251.             AssetUniverseStatisticalProperties.FromMultivariateMetrics (
  252.                 MultivariateMoments.Standard (
  253.                     assetIDArray,
  254.                     posteriorDistribution.mean(),
  255.                     assetSpacePosteriorCovarianceMatrix
  256.                 )
  257.             )
  258.         );

  259.         AssetComponent[] assetComponentArray = optimizationOutput.optimalPortfolio().assetComponentArray();

  260.         ProjectionExposure projectionExposure =
  261.             blackLittermanCombinationEngine.projectionExposureAttribution();

  262.         double[] interViewComponentArray = projectionExposure.interViewComponentArray();

  263.         double[] intraViewComponentArray = projectionExposure.intraViewComponentArray();

  264.         double[] priorViewComponentArray = projectionExposure.priorViewComponentArray();

  265.         double[] cumulativeViewComponentLoadingArray = projectionExposure.cumulativeViewComponentLoadingArray();

  266.         System.out.println ("\n\t|------------------------||");

  267.         System.out.println ("\t| TAU   => " + FormatUtil.FormatDouble (tau, 1, 8, 1.) + "   ||");

  268.         System.out.println ("\t| DELTA => " + FormatUtil.FormatDouble (riskFreeRate, 1, 8, 1.) + "   ||");

  269.         System.out.println ("\t|------------------------||");

  270.         System.out.println ("\n\t|------------------------||");

  271.         System.out.println ("\t|  ASSET EXCESS RETURNS  ||");

  272.         System.out.println ("\t|------------------------||");

  273.         System.out.println ("\t|   ID  => EQ WT |  VOL  ||");

  274.         System.out.println ("\t|------------------------||");

  275.         for (int assetID = 0; assetID < assetSpaceJointReturnsReconcilerArray.length; ++assetID)
  276.         {
  277.             System.out.println (
  278.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  279.                 FormatUtil.FormatDouble (assetEquilibriumWeightArray[assetID], 2, 1, 100.) + "% |" +
  280.                 FormatUtil.FormatDouble (assetExcessReturnsVolatilityArray[assetID], 2, 1, 100.) + "% ||"
  281.             );
  282.         }

  283.         System.out.println ("\t|------------------------||");

  284.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  285.         System.out.println ("\t|                           PRIOR CROSS ASSET CORRELATION MATRIX                                 ||");

  286.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  287.         String header = "\t|     |";

  288.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  289.         {
  290.             header += "    " + assetIDArray[assetID] + "     |";
  291.         }

  292.         System.out.println (header + "|");

  293.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  294.         for (int assetIDI = 0; assetIDI < assetIDArray.length; ++assetIDI)
  295.         {
  296.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  297.             for (int j = 0; j < assetIDArray.length; ++j)
  298.             {
  299.                 dump += "|" + FormatUtil.FormatDouble (assetExcessReturnsCorrelationMatrix[assetIDI][j], 1, 8, 1.) + " ";
  300.             }

  301.             System.out.println (dump + "||");
  302.         }

  303.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  304.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  305.         System.out.println ("\t|                           PRIOR CROSS ASSET COVARIANCE MATRIX                                  ||");

  306.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  307.         header = "\t|     |";

  308.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  309.         {
  310.             header += "    " + assetIDArray[assetID] + "     |";
  311.         }

  312.         System.out.println (header + "|");

  313.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  314.         for (int assetIDI = 0; assetIDI < assetIDArray.length; ++assetIDI)
  315.         {
  316.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  317.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  318.             {
  319.                 dump += "|" + FormatUtil.FormatDouble (
  320.                     assetExcessReturnsCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  321.                 ) + " ";
  322.             }

  323.             System.out.println (dump + "||");
  324.         }

  325.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  326.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  327.         System.out.println ("\t|                          VIEW SCOPING ASSET PROJECTION LOADING                                 ||");

  328.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  329.         header = "\t|     |";

  330.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  331.         {
  332.             header += "    " + assetIDArray[assetID] + "     |";
  333.         }

  334.         System.out.println (header + "|");

  335.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  336.         for (int viewIndex = 0; viewIndex < assetSpaceViewProjectionMatrix.length; ++viewIndex)
  337.         {
  338.             String dump = "\t|  #" + viewIndex + " ";

  339.             for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  340.             {
  341.                 dump += "|" + FormatUtil.FormatDouble (assetSpaceViewProjectionMatrix[viewIndex][assetID], 1, 8, 1.) + " ";
  342.             }

  343.             System.out.println (dump + "||");
  344.         }

  345.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  346.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  347.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  348.         for (int viewIndexI = 0; viewIndexI < assetSpaceViewProjectionMatrix.length; ++viewIndexI)
  349.         {
  350.             String dump = "\t|  #" + viewIndexI + " ";

  351.             for (int viewIndexJ = 0; viewIndexJ < assetSpaceViewProjectionMatrix.length; ++viewIndexJ)
  352.             {
  353.                 dump += "|" + FormatUtil.FormatDouble (projectionExcessReturnsCovarianceMatrix[viewIndexI][viewIndexJ], 1, 8, 1.) + " ";
  354.             }

  355.             System.out.println (dump + "|" + FormatUtil.FormatDouble (projectionExpectedExcessReturnsArray[viewIndexI], 1, 2, 100.) + "%");
  356.         }

  357.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  358.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  359.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  360.         System.out.println ("\t|                           JOINT CROSS ASSET COVARIANCE MATRIX                                  ||");

  361.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  362.         header = "\t|     |";

  363.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  364.         {
  365.             header += "    " + assetIDArray[assetID] + "     |";
  366.         }

  367.         System.out.println (header + "|");

  368.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  369.         for (int assetIDI = 0; assetIDI < assetIDArray.length; ++assetIDI)
  370.         {
  371.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  372.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  373.             {
  374.                 dump += "|" + FormatUtil.FormatDouble (
  375.                     assetSpaceJointCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  376.                 ) + " ";
  377.             }

  378.             System.out.println (dump + "||");
  379.         }

  380.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  381.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  382.         System.out.println ("\t|                         POSTERIOR CROSS ASSET COVARIANCE MATRIX                                ||");

  383.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  384.         header = "\t|     |";

  385.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  386.         {
  387.             header += "    " + assetIDArray[assetID] + "     |";
  388.         }

  389.         System.out.println (header + "|");

  390.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  391.         for (int assetIDI = 0; assetIDI < assetIDArray.length; ++assetIDI)
  392.         {
  393.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  394.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  395.             {
  396.                 dump += "|" + FormatUtil.FormatDouble (
  397.                     assetSpacePosteriorCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  398.                 ) + " ";
  399.             }

  400.             System.out.println (dump + "||");
  401.         }

  402.         System.out.println ("\t|------------------------------------------------------------------------------------------------||\n");

  403.         System.out.println ("\t|------------------------||");

  404.         System.out.println ("\t| JOINT/POSTERIOR RETURN ||");

  405.         System.out.println ("\t|------------------------||");

  406.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  407.         System.out.println ("\t|------------------------||");

  408.         for (int assetID = 0; assetID < assetSpaceJointReturnsReconcilerArray.length; ++assetID)
  409.         {
  410.             System.out.println (
  411.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  412.                 FormatUtil.FormatDouble (assetSpaceJointReturnsArray[assetID], 2, 1, 100.) + "% |" +
  413.                 FormatUtil.FormatDouble (assetSpaceJointReturnsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  414.             );
  415.         }

  416.         System.out.println ("\t|------------------------||");

  417.         System.out.println ("\n\t|------------------------||");

  418.         System.out.println ("\t| OPTIMAL POSTERIOR WTS. ||");

  419.         System.out.println ("\t|------------------------||");

  420.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  421.         System.out.println ("\t|------------------------||");

  422.         for (int assetID = 0; assetID < assetComponentArray.length; ++assetID)
  423.         {
  424.             System.out.println (
  425.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  426.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount(), 2, 1, 100.) + "% |" +
  427.                 FormatUtil.FormatDouble (posteriorOptimalWeightsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  428.             );
  429.         }

  430.         System.out.println ("\t|------------------------||");

  431.         System.out.println ("\n\t|------------------------||");

  432.         System.out.println ("\t|   POSTERIOR DEVIATION  ||");

  433.         System.out.println ("\t|------------------------||");

  434.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  435.         System.out.println ("\t|------------------------||");

  436.         for (int assetID = 0; assetID < assetComponentArray.length; ++assetID)
  437.         {
  438.             System.out.println (
  439.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  440.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount() - (assetEquilibriumWeightArray[assetID]) / (1. + tau), 2, 1, 100.) + "% |" +
  441.                 FormatUtil.FormatDouble (posteriorOptimalDeviationReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  442.             );
  443.         }

  444.         System.out.println ("\t|------------------------||\n");

  445.         System.out.println ("\t|-----------------------------------------------------------------||");

  446.         System.out.println ("\t|              POSTERIOR DEVIATION WEIGHTS ATTRIBUTION            ||");

  447.         System.out.println ("\t|-----------------------------------------------------------------||");

  448.         System.out.println ("\t| VIEW NUM =>  INTRA |  INTER |  PRIOR |  CUMUL |  BAYES |  RECON ||");

  449.         System.out.println ("\t|-----------------------------------------------------------------||");

  450.         for (int viewIndex = 0; viewIndex < interViewComponentArray.length; ++viewIndex)
  451.         {
  452.             System.out.println (
  453.                 "\t| VIEW  #" + (viewIndex + 1) + " => " +
  454.                 FormatUtil.FormatDouble (interViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  455.                 FormatUtil.FormatDouble (intraViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  456.                 FormatUtil.FormatDouble (priorViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  457.                 FormatUtil.FormatDouble (cumulativeViewComponentLoadingArray[viewIndex], 1, 3, 1.) + " | " +
  458.                 FormatUtil.FormatDouble (cumulativeViewComponentLoadingArray[viewIndex] / (1. + tau), 1, 3, 1.) + " | " +
  459.                 FormatUtil.FormatDouble (bayesPELoadingsReconcilerArray[viewIndex], 1, 3, 1.) + " ||"
  460.             );
  461.         }

  462.         System.out.println ("\t|-----------------------------------------------------------------||\n");

  463.         EnvManager.TerminateEnv();
  464.     }
  465. }