Examples of SmileInterpolatorMixedLogNormal


Examples of com.opengamma.analytics.financial.model.volatility.smile.fitting.interpolation.SmileInterpolatorMixedLogNormal

    private static final String WEIGHTING_FUNCTION_FIELD_NAME = "weightingFunctionField";

    @Override
    public SmileInterpolatorMixedLogNormal buildObject(final FudgeDeserializer deserializer, final FudgeMsg message) {
      final String weightingFunctionName = message.getString(WEIGHTING_FUNCTION_FIELD_NAME);
      return new SmileInterpolatorMixedLogNormal(WeightingFunctionFactory.getWeightingFunction(weightingFunctionName));
    }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.volatility.smile.fitting.interpolation.SmileInterpolatorMixedLogNormal

    assertEquals(interpolator, cycleObject(SmileInterpolatorSpline.class, interpolator));
  }

  @Test
  public void testSmileInterpolatorMixedLogNormal() {
    final SmileInterpolatorMixedLogNormal interpolator = new SmileInterpolatorMixedLogNormal(WeightingFunctionFactory.COSINE_WEIGHTING_FUNCTION);
    assertEquals(interpolator, cycleObject(SmileInterpolatorMixedLogNormal.class, interpolator));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.volatility.smile.fitting.interpolation.SmileInterpolatorMixedLogNormal

  @Override
  protected GeneralSmileInterpolator getSmileInterpolator(final ValueRequirement desiredValue) {
    final String weightingFunctionName = desiredValue.getConstraint(PROPERTY_MIXED_LOG_NORMAL_WEIGHTING_FUNCTION);
    final WeightingFunction weightingFunction = WeightingFunctionFactory.getWeightingFunction(weightingFunctionName);
    return new SmileInterpolatorMixedLogNormal(weightingFunction);
  }
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.