All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opengamma.strata.pricer.impl.tree.LatticeSpecification Maven / Gradle / Ivy

There is a newer version: 2.12.46
Show newest version
/*
 * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.pricer.impl.tree;

import com.opengamma.strata.collect.array.DoubleArray;

/**
 * Lattice specification interface.
 * 

* An implementation of the lattice specification defines construction of binomial and trinomial trees, and computes * transition probabilities and state steps. *

* Reference: Y. Iwashita, "Tree Option Pricing Models" OpenGamma Quantitative Research 23. */ public interface LatticeSpecification { /** * Computes parameters for uniform trinomial tree. *

* The interest rate must be zero-coupon continuously compounded rate. *

* The trinomial tree parameters are represented as {@code DoubleArray} containing [0] up factor, [1] middle factor, * [2] down factor, [3] up probability, [4] middle probability, [5] down probability. * * @param volatility the volatility * @param interestRate the interest rate * @param dt the time step * @return the trinomial tree parameters */ public abstract DoubleArray getParametersTrinomial(double volatility, double interestRate, double dt); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy