Examples of InterestRate


Examples of org.jquantlib.termstructures.InterestRate

    //

    @Override
    protected double zeroYieldImpl(final double t) {
        //org.comment: to be fixed: user-defined daycounter should be used
        final InterestRate zeroRate = originalCurve.currentLink().
        zeroRate(t, comp, freq, true);
        final InterestRate spreadedRate =
            new InterestRate(zeroRate.rate() + spread.currentLink().value(),
                    zeroRate.dayCounter(),
                    zeroRate.compounding(),
                    zeroRate.frequency());
        return spreadedRate.equivalentRate(t, Compounding.Continuous, Frequency.NoFrequency).rate();
    }
View Full Code Here

Examples of org.jquantlib.termstructures.InterestRate

    //
    // private methods
    //

    private void updateRate() {
        rate = new InterestRate(forward.currentLink().value(), this.dayCounter(), this.compounding, this.frequency);
    }
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.