Package com.opengamma.analytics.financial.var

Examples of com.opengamma.analytics.financial.var.VaRCalculationResult


      if (portfolioReturn < -var) {
        excesses.add(portfolioReturn);
      }
    }
    if (excesses.isEmpty()) {
      return new VaRCalculationResult(var, null);
    }
    return new VaRCalculationResult(-_meanCalculator.evaluate(excesses.toDoubleArray()), null);
  }
View Full Code Here


    final Set<String> stdDevCalculatorNames = constraints.getValues(ValuePropertyNames.STD_DEV_CALCULATOR);
    final Set<String> confidenceLevelNames = constraints.getValues(ValuePropertyNames.CONFIDENCE_LEVEL);
    final Set<String> horizonNames = constraints.getValues(ValuePropertyNames.HORIZON);
    final NormalVaRParameters parameters = getParameters(scheduleCalculatorNames, horizonNames, confidenceLevelNames);
    final NormalLinearVaRCalculator<DoubleTimeSeries<?>> varCalculator = getVaRCalculator(meanCalculatorNames, stdDevCalculatorNames);
    final VaRCalculationResult calcResult = varCalculator.evaluate(parameters, pnlSeries);
    final double var = calcResult.getVaRValue();
    final double stddev = calcResult.getStdDev();
    final Set<ComputedValue> results = new HashSet<ComputedValue>();
    if (computeVar) {
      results.add(new ComputedValue(new ValueSpecification(ValueRequirementNames.HISTORICAL_VAR, target.toSpecification(), constraints), var));
    }
    if (computeStddev) {
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.financial.var.VaRCalculationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.