Package org.jquantlib.math

Examples of org.jquantlib.math.SampledCurve


    // public constructors
    //

    public FDEuropeanEngine(final GeneralizedBlackScholesProcess process, final int timeSteps, final int gridPoints, final boolean timeDependent) {
        fdVanillaEngine = new FDVanillaEngine(process, timeSteps, gridPoints, timeDependent);
        prices = new SampledCurve(gridPoints);
        process.addObserver(this);
    }
View Full Code Here


        fdVanillaEngine.initializeOperator();
        fdVanillaEngine.initializeBoundaryConditions();

        final StandardFiniteDifferenceModel model = new StandardFiniteDifferenceModel(fdVanillaEngine.finiteDifferenceOperator, fdVanillaEngine.bcS);

        prices = new SampledCurve(fdVanillaEngine.intrinsicValues);
        prices.setValues( model.rollback(prices.values(), fdVanillaEngine.getResidualTime(), 0, fdVanillaEngine.timeSteps) );

        final OneAssetOption.ResultsImpl r = (OneAssetOption.ResultsImpl)results_;
        r.value = prices.valueAtCenter();
        final Option.GreeksImpl greeks = r.greeks();
View Full Code Here

TOP

Related Classes of org.jquantlib.math.SampledCurve

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.