Package org.drip.capital.entity
Class CapitalUnit
java.lang.Object
org.drip.capital.entity.CapitalUnit
- All Implemented Interfaces:
CapitalSimulator
public class CapitalUnit extends java.lang.Object implements CapitalSimulator
CapitalUnit implements the VaR and the Stress Functionality for the specified Capital Unit. The
References are:
- Bank for International Supervision(2005): Stress Testing at Major Financial Institutions: Survey Results and Practice https://www.bis.org/publ/cgfs24.htm
- Glasserman, P. (2004): Monte Carlo Methods in Financial Engineering Springer
- Kupiec, P. H. (2000): Stress Tests and Risk Capital Risk 2 (4) 27-39
- Module = Portfolio Core Module
- Library = Capital Analytics
- Project = Basel Market Risk and Operational Capital
- Package = Economic Risk Capital Estimation Nodes
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CapitalUnit(Coordinate coordinate, CapitalUnitEventContainer stressEventContainer, double notional)
CapitalUnit Constructor -
Method Summary
Modifier and Type Method Description Coordinate
coordinate()
Retrieve the Capital Unit Coordinatedouble
notional()
Retrieve the Capital Unit NotionalCapitalUnitPathEnsemble
pathEnsemble(SimulationControl simulationControl, SimulationPnLControl simulationPnLControl)
Generate the Simulation Path EnsemblePathPnLRealization[]
pathPnLRealizationArray(SimulationControl simulationControl, SimulationPnLControl simulationPnLControl)
Generate the Array of Path PnL RealizationsCapitalUnitEventContainer
stressEventContainer()
Retrieve the Capital Unit Stress Event ContainerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CapitalUnit
public CapitalUnit(Coordinate coordinate, CapitalUnitEventContainer stressEventContainer, double notional) throws java.lang.ExceptionCapitalUnit Constructor- Parameters:
coordinate
- Capital Unit CoordinatestressEventContainer
- Capital Unit Stress Event Containernotional
- The Capital Unit Notional- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
coordinate
Retrieve the Capital Unit Coordinate- Returns:
- The Capital Unit Coordinate
-
stressEventContainer
Retrieve the Capital Unit Stress Event Container- Returns:
- The Capital Unit Stress Event Container
-
notional
public double notional()Retrieve the Capital Unit Notional- Returns:
- The Capital Unit Notional
-
pathPnLRealizationArray
public PathPnLRealization[] pathPnLRealizationArray(SimulationControl simulationControl, SimulationPnLControl simulationPnLControl)Description copied from interface:CapitalSimulator
Generate the Array of Path PnL Realizations- Specified by:
pathPnLRealizationArray
in interfaceCapitalSimulator
- Parameters:
simulationControl
- Simulation SettingssimulationPnLControl
- PnL Settings- Returns:
- Array of Path PnL Realizations
-
pathEnsemble
public CapitalUnitPathEnsemble pathEnsemble(SimulationControl simulationControl, SimulationPnLControl simulationPnLControl)Description copied from interface:CapitalSimulator
Generate the Simulation Path Ensemble- Specified by:
pathEnsemble
in interfaceCapitalSimulator
- Parameters:
simulationControl
- Simulation SettingssimulationPnLControl
- PnL Settings- Returns:
- The Simulation Path Ensemble
-