Package com.opengamma.financial.analytics

Examples of com.opengamma.financial.analytics.TenorLabelledLocalDateDoubleTimeSeriesMatrix1D


      }
      final LocalDateDoubleTimeSeries pnlSeries = getReturnSeries(ts.getTimeSeries(), desiredValue, executionContext);
      tenors[i] = curveNode.getCurveNode().getResolvedMaturity();
      returnSeries[i] = pnlSeries.multiply(sensitivity * position.getQuantity().doubleValue());
    }
    final TenorLabelledLocalDateDoubleTimeSeriesMatrix1D matrix = new TenorLabelledLocalDateDoubleTimeSeriesMatrix1D(tenors, labels, returnSeries);
    final ValueProperties properties = desiredValue.getConstraints().copy()
        .withoutAny(CURRENCY)
        .with(CURRENCY, currency)
        .get();
    final ValueSpecification spec = new ValueSpecification(CURVE_PNL_SERIES, target.toSpecification(), properties);
View Full Code Here


        pnlSeries = getReturnSeries(ts.getTimeSeries(), desiredValue, executionContext);
      }
      tenors[i] = curveNode.getCurveNode().getResolvedMaturity();
      returnSeries[i] = pnlSeries.multiply(sensitivity * position.getQuantity().doubleValue());
    }
    final TenorLabelledLocalDateDoubleTimeSeriesMatrix1D matrix = new TenorLabelledLocalDateDoubleTimeSeriesMatrix1D(tenors, labels, returnSeries);
    final ValueProperties properties = desiredValue.getConstraints().copy()
        .withoutAny(CURRENCY)
        .with(CURRENCY, currency)
        .get();
    final ValueSpecification spec = new ValueSpecification(CURVE_PNL_SERIES, target.toSpecification(), properties);
View Full Code Here

      sensitivityToRate = new boolean[tenors.length];
    } else {
      throw new OpenGammaRuntimeException("Yield curve specification and FX forward curve definition both missing. Expected one.");
    }

    final TenorLabelledLocalDateDoubleTimeSeriesMatrix1D returnSeriesVector = getReturnSeriesVector(bundle, tenors,
        sensitivityToRate, schedule, samplingFunction, returnSeriesStart, includeStart, desiredValue);
    final ValueSpecification resultSpec = new ValueSpecification(ValueRequirementNames.YIELD_CURVE_RETURN_SERIES, target.toSpecification(), desiredValue.getConstraints());
    return ImmutableSet.of(new ComputedValue(resultSpec, returnSeriesVector));
  }
View Full Code Here

      // Clip the time-series to the range originally asked for
      returnSeries = returnSeries.subSeries(startDate, includeStart, returnSeries.getLatestTime(), true);

      returnSeriesArray[t] = returnSeries;
    }
    return new TenorLabelledLocalDateDoubleTimeSeriesMatrix1D(tenors, returnSeriesArray);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.TenorLabelledLocalDateDoubleTimeSeriesMatrix1D

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.