Package org.jquantlib.methods.finitedifferences

Examples of org.jquantlib.methods.finitedifferences.StandardFiniteDifferenceModel


    protected double getDividendTime(final int i) {
        return stoppingTimes.get(i);
    }

    protected void initializeModel() {
        model = new StandardFiniteDifferenceModel(finiteDifferenceOperator, bcS);
    }
View Full Code Here


        fdVanillaEngine.setGridLimits();
        fdVanillaEngine.initializeInitialCondition();
        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();
        greeks.delta = prices.firstDerivativeAtCenter();
View Full Code Here

        fdVanillaEngine.setGridLimits();
        fdVanillaEngine.initializeInitialCondition();
        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();
        greeks.delta = prices.firstDerivativeAtCenter();
View Full Code Here

    protected double getDividendTime(final int i) {
        return stoppingTimes.get(i);
    }

    protected void initializeModel() {
        model = new StandardFiniteDifferenceModel(finiteDifferenceOperator, bcS);
    }
View Full Code Here

TOP

Related Classes of org.jquantlib.methods.finitedifferences.StandardFiniteDifferenceModel

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.