public class GenericImpliedVolatiltySolver extends Object
| Constructor and Description |
|---|
GenericImpliedVolatiltySolver(Function<Double,double[]> priceAndVegaFunc)
Creates an instance.
|
GenericImpliedVolatiltySolver(Function<Double,Double> priceFunc,
Function<Double,Double> vegaFunc)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
impliedVolatility(double optionPrice)
Computes the implied volatility.
|
double |
impliedVolatility(double optionPrice,
double volGuess)
Computes the implied volatility.
|
public GenericImpliedVolatiltySolver(Function<Double,double[]> priceAndVegaFunc)
priceAndVegaFunc - the combined price and vega functionpublic double impliedVolatility(double optionPrice)
optionPrice - the option pricepublic double impliedVolatility(double optionPrice,
double volGuess)
optionPrice - the option pricevolGuess - the initial guessCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.