Examples of FXMatrix


Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   * (minimum: 1.0E-6; maximum: 1.0, function value accuracy: 1.0E-4; parameter absolute accuracy: 1.0E-9).
   * @param parameters The Hull-White parameters.
   * @param ccy The currency for which the Hull-White parameters are valid (Hull-White on the discounting curve).
   */
  public SuccessiveRootFinderHullWhiteCalibrationObjective(final HullWhiteOneFactorPiecewiseConstantParameters parameters, final Currency ccy) {
    super(new FXMatrix(ccy), ccy);
    _hwParameters = parameters;
    _ccyHW = ccy;
    setMinimumParameter(1.0E-6);
    setMaximumParameter(1.0);
    setFunctionValueAccuracy(1.0E-4);
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   * Constructor. An empty map is created for the curves and an empty FXMatrix.
   */
  public YieldCurveBundle() {
    _curves = new LinkedHashMap<>();
    _curveCurrency = new HashMap<>();
    _fxMatrix = new FXMatrix();
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

      ArgumentChecker.noNulls(curvesMap.keySet(), "curve map key set");
      ArgumentChecker.noNulls(curvesMap.values(), "curve map entry set");
      _curves.putAll(curvesMap);
    }
    _curveCurrency = new HashMap<>(curveCurrency);
    _fxMatrix = new FXMatrix(fxMatrix);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   * @param curveCurrency The map of currency names to currency
   */
  public YieldCurveBundle(final FXMatrix fxMatrix, final Map<String, Currency> curveCurrency) {
    _curves = new LinkedHashMap<>();
    _curveCurrency = new HashMap<>(curveCurrency);
    _fxMatrix = new FXMatrix(fxMatrix);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   * @param curvesMap The map.
   */
  public YieldCurveBundle(final Map<String, ? extends YieldAndDiscountCurve> curvesMap) {
    _curves = new LinkedHashMap<>();
    _curveCurrency = new HashMap<>();
    _fxMatrix = new FXMatrix();
    if (curvesMap != null) {
      ArgumentChecker.noNulls(curvesMap.keySet(), "curves map key set");
      ArgumentChecker.noNulls(curvesMap.values(), "curves map values");
      _curves.putAll(curvesMap);
    }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

    ArgumentChecker.isTrue(names.length == curves.length, "Different number of names ({}) and curves ({})", names.length, curves.length);
    ArgumentChecker.noNulls(names, "names");
    ArgumentChecker.noNulls(curves, "curves");
    _curves = new LinkedHashMap<>();
    _curveCurrency = new HashMap<>();
    _fxMatrix = new FXMatrix();
    final int n = names.length;
    for (int i = 0; i < n; i++) {
      _curves.put(names[i], curves[i]);
    }
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

    ArgumentChecker.notNull(curvesMap, "curves map");
    ArgumentChecker.notNull(fxMatrix, "FX matrix");
    ArgumentChecker.notNull(curveCurrency, "curve currency");
    _curves = new LinkedHashMap<>(curvesMap);
    _curveCurrency = new HashMap<>(curveCurrency);
    _fxMatrix = new FXMatrix(fxMatrix);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

    ArgumentChecker.isTrue(names.length == currencies.length, "Different number of names ({}) and currencies ({})", names.length, currencies.length);
    ArgumentChecker.noNulls(names, "names");
    ArgumentChecker.noNulls(curves, "curves");
    _curves = new LinkedHashMap<>();
    _curveCurrency = new HashMap<>();
    _fxMatrix = new FXMatrix();
    final int n = names.length;
    for (int i = 0; i < n; i++) {
      _curves.put(names[i], curves[i]);
      _curveCurrency.put(names[i], currencies[i]);
    }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   */
  public YieldCurveBundle(final YieldCurveBundle bundle) {
    ArgumentChecker.notNull(bundle, "bundle");
    _curves = new LinkedHashMap<>(bundle._curves);
    _curveCurrency = new HashMap<>(bundle._curveCurrency);
    _fxMatrix = new FXMatrix(bundle._fxMatrix);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.method.FXMatrix

   * @return The bundle.
   */
  public YieldCurveBundle copy() {
    final LinkedHashMap<String, YieldAndDiscountCurve> curves = new LinkedHashMap<>(_curves);
    final Map<String, Currency> curveCurrency = new HashMap<>(_curveCurrency);
    final FXMatrix fxMatrix = new FXMatrix(_fxMatrix);
    return new YieldCurveBundle(fxMatrix, curveCurrency, curves);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.